RadioGroup
Group of radio buttons for selecting a single option
Example
Loading preview…
RadioGroup
Group of radio buttons for selecting a single option
Source: packages/appkit-ui/src/react/ui/radio-group.tsx
Props
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | - | - | |
required | boolean | - | - | |
disabled | boolean | - | - | |
dir | enum | - | - | |
orientation | enum | - | - | |
loop | boolean | - | - | |
defaultValue | string | - | - | |
value | string | null | - | - | |
onValueChange | ((value: string) => void) | - | - | |
asChild | boolean | - | - |
Usage
import { RadioGroup } from '@databricks/appkit-ui';
<RadioGroup /* props */ />
RadioGroupItem
Source: packages/appkit-ui/src/react/ui/radio-group.tsx
Props
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
value | string | null | - | - | |
asChild | boolean | - | - | |
checked | boolean | - | - | |
required | boolean | - | - |
Usage
import { RadioGroupItem } from '@databricks/appkit-ui';
<RadioGroupItem /* props */ />