Radio API
import { Radio } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
checked | boolean | |
density | 'default' | 'compact' | 'comfortable' | |
disabled | boolean | |
headless | boolean | |
invalid | boolean | |
loading | boolean | |
name | string | |
onChange | (event: CustomEvent<RadioChangeDetail>) => void | |
onCheckedChange | (checked: boolean, detail: RadioChangeDetail) => void | |
onInput | (event: CustomEvent<RadioChangeDetail>) => void | |
required | boolean | |
tone | 'brand' | 'neutral' | 'success' | 'warning' | 'danger' | 'info' | |
value | string |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-radio>
Radio renders the ui-radio custom element from @editora/ui-core, which can also be used without React.
Attributes: checked, disabled, headless, invalid, loading, name, required, tabindex, value
Events: change, input