Skip to content

components/radio-group

@fungi.computer/caps


@fungi.computer/caps / components/radio-group

RadioGroupProps = object & Omit<FieldsetHTMLAttributes<HTMLFieldSetElement>>, "defaultValue" | "onChange">>

Props accepted by RadioGroup.

children: ReactNode

optional defaultValue?: string

optional name?: string

optional onValueChange?: (value) => void

Called after the selected radio value changes.

string

void

optional orientation?: "horizontal" | "vertical"

optional value?: string


RadioGroupItemProps = object & Omit<InputHTMLAttributes<HTMLInputElement>>, "checked" | "defaultChecked" | "name" | "type" | "value">>

Props accepted by RadioGroupItem.

value: string

const RadioGroup: ForwardRefExoticComponent<object & Omit<FieldsetHTMLAttributes<HTMLFieldSetElement>>, "defaultValue" | "onChange"> > & RefAttributes<HTMLFieldSetElement>>>>

A radio-group primitive with caller-owned selection state.


const RadioGroupItem: ForwardRefExoticComponent<object & Omit<InputHTMLAttributes<HTMLInputElement>>, "name" | "value" | "type" | "defaultChecked" | "checked"> > & RefAttributes<HTMLInputElement>>>>

A selectable item in a RadioGroup.