@shcnwc/shadcn-radio-group-web-component
v1.3.2
Published
A set of checkable buttons—known as radio buttons—where no more than one of the buttons can be checked at a time.
Downloads
7
Readme
Radio Group
A set of checkable buttons—known as radio buttons—where no more than one of the buttons can be checked at a time.
Installation
npm install @shcnwc/shadcn-radio-group-web-componentUsage
<script type="module">
import "@shcnwc/shadcn-radio-group-web-component";
</script>
<radiogroup-root value="option-one">
<div class="flex items-center space-x-2">
<radiogroup-item value="option-one" id="option-one" />
<label for="option-one">option one</label>
</div>
<div class="flex items-center space-x-2">
<radiogroup-item value="option-two" id="option-two" />
<label for="option-two">option two</label>
</div>
</radiogroup-root>Links
Contributing
Contributions are welcome! Please open an issue or pull request on GitHub.
License
This project is licensed under the MIT License.
