Base Components
Radio
Radio button is a form control for making a single selection from a short list of options.
Installation
Install the following dependencies:
terminal
Create a radio.tsx
file and paste the following code into it.
/components/ui/radio.tsx
Update the import paths to match your project setup.
Examples
Disabled
With Label
With Advanced Label
API Reference
This component is based on the Radix UI Radio Group primitives. Refer to their documentation for the API reference.
© 2024 AlignUI Design System. All rights reserved.