components/radio-group
@fungi.computer/caps / components/radio-group
components/radio-group
Section titled “components/radio-group”Type Aliases
Section titled “Type Aliases”RadioGroupProps
Section titled “RadioGroupProps”RadioGroupProps =
object&Omit<FieldsetHTMLAttributes<HTMLFieldSetElement>>,"defaultValue"|"onChange">>
Props accepted by RadioGroup.
Type Declaration
Section titled “Type Declaration”children
Section titled “children”children:
ReactNode
defaultValue?
Section titled “defaultValue?”
optionaldefaultValue?:string
optionalname?:string
onValueChange?
Section titled “onValueChange?”
optionalonValueChange?: (value) =>void
Called after the selected radio value changes.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
orientation?
Section titled “orientation?”
optionalorientation?:"horizontal"|"vertical"
value?
Section titled “value?”
optionalvalue?:string
RadioGroupItemProps
Section titled “RadioGroupItemProps”RadioGroupItemProps =
object&Omit<InputHTMLAttributes<HTMLInputElement>>,"checked"|"defaultChecked"|"name"|"type"|"value">>
Props accepted by RadioGroupItem.
Type Declaration
Section titled “Type Declaration”value:
string
Variables
Section titled “Variables”RadioGroup
Section titled “RadioGroup”
constRadioGroup:ForwardRefExoticComponent<object&Omit<FieldsetHTMLAttributes<HTMLFieldSetElement>>,"defaultValue"|"onChange"> > &RefAttributes<HTMLFieldSetElement>>>>
A radio-group primitive with caller-owned selection state.
RadioGroupItem
Section titled “RadioGroupItem”
constRadioGroupItem:ForwardRefExoticComponent<object&Omit<InputHTMLAttributes<HTMLInputElement>>,"name"|"value"|"type"|"defaultChecked"|"checked"> > &RefAttributes<HTMLInputElement>>>>
A selectable item in a RadioGroup.