RadioGroup API
import { RadioGroup } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
disabled | boolean | |
name | string | |
onValueChange | (detail: { value: string; option?: RadioOption; reason?: 'click' | 'keyboard'; name?: string; }) => void | |
options | Array<RadioOption | string> | |
orientation | 'vertical' | 'horizontal' | |
required | boolean | |
size | 'sm' | 'md' | 'lg' | |
tone | 'brand' | 'neutral' | 'success' | 'warning' | 'danger' | 'info' | |
value | string | |
variant | 'default' | 'card' | 'segmented' |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-radio-group>
RadioGroup renders the ui-radio-group custom element from @editora/ui-core, which can also be used without React.
Attributes: disabled, headless, name, options, orientation, required, size, tone, value, variant
Events: change, input, valuechange