Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Card
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Dialog
- Dropdown Menu
- Empty
- Field
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Kbd
- Label
- Native Select
- Pagination
- Popover
- Progress
- Radio Group
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toast
- Toggle
- Toggle Group
- Tooltip
- Typography
Get Started
@shadcn/react
@shadcn/helpers
Force UI registry
Utilities
Installation#
pnpm dlx shadcn@latest add @force-ui-ember/radio-group
Usage#
import { Label } from '@/ember-ui/label';
import { RadioGroup, RadioGroupItem } from '@/ember-ui/radio-group';<RadioGroup @defaultValue="option-one">
<div class="flex items-center gap-3">
<RadioGroupItem @value="option-one" id="option-one" />
<Label @for="option-one">Option One</Label>
</div>
<div class="flex items-center gap-3">
<RadioGroupItem @value="option-two" id="option-two" />
<Label @for="option-two">Option Two</Label>
</div>
</RadioGroup>Composition#
Use the following composition to build a RadioGroup:
RadioGroup
├── RadioGroupItem
└── RadioGroupItemExamples#
Description#
Radio group items with a description using the Field component.
Choice Card#
Use FieldLabel to wrap the entire Field for a clickable card-style selection.
Fieldset#
Use FieldSet and FieldLegend to group radio items with a label and description.
Disabled#
Use the @disabled prop on RadioGroupItem to disable individual items.
Invalid#
Use aria-invalid on RadioGroupItem and data-invalid on Field to show validation errors.
RTL#
To enable RTL support in Force UI, see the RTL configuration guide.
API Reference#
See the Radix UI Radio Group documentation.
Deploy your shadcn/ui app on Vercel
Trusted by OpenAI, Sonos, Adobe, and more.
Vercel provides tools and infrastructure to deploy apps and features at scale.
Deploy to Vercel