Skip to main content
Version: Next

RadioGroup API

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

Props​

PropTypeDescription
disabledboolean
namestring
onValueChange(detail: { value: string; option?: RadioOption; reason?: 'click' | 'keyboard'; name?: string; }) => void
optionsArray<RadioOption | string>
orientation'vertical' | 'horizontal'
requiredboolean
size'sm' | 'md' | 'lg'
tone'brand' | 'neutral' | 'success' | 'warning' | 'danger' | 'info'
valuestring
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