Radio

RadioGroup props

NameTypeDescription
childrenReact.NodeRadioButton elements
isDisabledbooleanIn case you don't want it to be active
namestring...
onChange(ev: ChangeEvent) => voidChange handler
themePartialGlobalDefaultTheme[ typeof COMPONENTS_NAMESPACES.calendar ]...
valuenumber | string...
_[className]
[x: string]: unknown
E.g.: _w-48 adds a css class w-48 to the component's outer wrapper.

RadioButton props

NameTypeDescription
idstring...
isDisabledbooleanIn case you don't want it to be active
namestring...
onChange(ev: ChangeEvent) => voidChange handler
shouldRender
boolean
Pass false if you don't want the component to appear
themePartialGlobalDefaultTheme[ typeof COMPONENTS_NAMESPACES.calendar ]...
valuenumber | string...
_[className]
[x: string]: unknown
E.g.: _w-48 adds a css class w-48 to the component's outer wrapper.

<L.RadioGroup
  onChange={({ component }) => console.log(component.value)}
>
  <L.RadioButton>One</L.RadioButton>
  <L.RadioButton>Two</L.RadioButton>
  <L.RadioButton>Three</L.RadioButton>
</L.RadioGroup>
  

Validation

NameTypeDescription
form
string
Form name
name
string
Component name