Viana Kitv0.1.4

Components

Radio Group

A set of radio buttons where only one option can be selected at a time.

example.tsx

Import

tsx
import { AppRadioGroup, AppRadioGroupItem } from "@/components/primitives/AppRadioGroup"

API Reference

AppRadioGroup and AppRadioGroupItem extend their underlying Radix UI primitives.

PropTypeDefaultDescription
defaultValuestringThe value of the item that is selected by default.
valuestringThe controlled value of the selected item.
onValueChange(value: string) => voidCallback fired when the selected value changes.
disabledbooleanfalseDisables all radio items in the group.
classNamestringAdditional Tailwind classes merged via cn(). Prefer the wrapper pattern for reusable overrides.

Source

src/components/primitives/AppRadioGroup.tsx
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"

const AppRadioGroup = RadioGroup
const AppRadioGroupItem = RadioGroupItem

export { AppRadioGroup, AppRadioGroupItem }