API reference: @salmonui/inputs/radio-group
Radiocomponent
import { Radio } from '@salmonui/inputs/radio-group';function Radio(props: RadioProps): ReactNode;
One radio. Inside a RadioGroup it
takes the group's name and selection; outside it is a plain native radio
grouped by its own name (checked / defaultChecked are native).
Props: RadioProps
| Name | Signature | Description |
|---|---|---|
value | readonly value: string; | The value this radio selects. |
childrenoptional | readonly children?: ReactNode; | Label text. |
labelPlacementoptional | readonly labelPlacement?: LabelPlacement | undefined; | |
classNameoptional | readonly className?: string | undefined; | |
styleoptional | readonly style?: CSSProperties | undefined; | |
classNamesoptional | readonly classNames?: {
readonly input?: string;
readonly label?: string;
} | undefined; | |
refoptional | readonly ref?: Ref<HTMLInputElement> | undefined; | The native |