Skip to main content
Version: Next

Radio API

import { Radio } from '@editora/ui-react';

Props​

PropTypeDescription
checkedboolean
density'default' | 'compact' | 'comfortable'
disabledboolean
headlessboolean
invalidboolean
loadingboolean
namestring
onChange(event: CustomEvent<RadioChangeDetail>) => void
onCheckedChange(checked: boolean, detail: RadioChangeDetail) => void
onInput(event: CustomEvent<RadioChangeDetail>) => void
requiredboolean
tone'brand' | 'neutral' | 'success' | 'warning' | 'danger' | 'info'
valuestring

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