Radio Group
A set of options where only one can be selected.
Built on Radix UI$ pnpm dlx shadcn@latest add https://multidash-app.vercel.app/r/radio-group.jsonInstallation
Add Radio Group with the shadcn CLI, or copy the source by hand. In this repo there's nothing to install — import it from @multidash/ui.
$ pnpm dlx shadcn@latest add https://multidash-app.vercel.app/r/radio-group.jsonAdds the component, the components it builds on, its npm packages and the theme tokens it uses. Using Multidash often? Add the registry to components.json once:
components.json
{
"registries": {
"@multidash": "https://multidash-app.vercel.app/r/{name}.json"
}
}Then add components by name:
$ pnpm dlx shadcn@latest add @multidash/radio-groupUsage
import {
RadioGroup,
RadioGroupItem,
} from "@multidash/ui/components/radio-group"Examples
Selectable cards
Wrap each option in its label and style the checked state with has-[].