moonstone/RadioItem

Exports the moonstone/RadioItem.RadioItem component.

import RadioItem from '@enact/moonstone/RadioItem';

Members

RadioItemComponent

moonstone/RadioItem.RadioItem is a component that combines a ui/Toggleable.Toggleable radio selector and an Item. It has two selected states true & false.

By default, RadioItem maintains the state of its selected property. Supply the defaultSelected property to control its initial value. If you wish to directly control updates to the component, supply a value to selected at creation time and update it in response to onToggle events.

import RadioItem from '@enact/moonstone/RadioItem';

RadioItemBaseComponent

moonstone/RadioItem.RadioItemBase is a component that combines a Toggleable radio selector and an Item. It has two selected states true & false.

import {RadioItemBase} from '@enact/moonstone/RadioItem';
Properties
children
String

The string to be displayed as the main content of the radio item.

disabled
Boolean

Applies a disabled visual state to the radio item.

Default: false
inline
Boolean

Applies inline styling to the radio item.

Default: false
onToggle
Function

The handler to run when the radio item is toggled.

selected
Boolean

Applies a filled circle icon to the radio item.

value
Any

The value that will be sent to the onToggle handler.

Default: ''
ArrayBooleanFunctionModuleNumberObjectString