View as Markdown

API reference: @salmonui/inputs/radio-group

RadioPropsinterface

import type { RadioProps } from '@salmonui/inputs/radio-group';
interface RadioProps extends NativeRadio {
    readonly value: string;
    readonly children?: ReactNode;
    readonly labelPlacement?: LabelPlacement | undefined;
    readonly className?: string | undefined;
    readonly style?: CSSProperties | undefined;
    readonly classNames?: {
        readonly input?: string;
        readonly label?: string;
    } | undefined;
    readonly ref?: Ref<HTMLInputElement> | undefined;
}
RadioProps members (7)
NameSignatureDescription
valuereadonly value: string;

The value this radio selects.

childrenoptionalreadonly children?: ReactNode;

Label text.

labelPlacementoptionalreadonly labelPlacement?: LabelPlacement | undefined;
classNameoptionalreadonly className?: string | undefined;
styleoptionalreadonly style?: CSSProperties | undefined;
classNamesoptionalreadonly classNames?: { readonly input?: string; readonly label?: string; } | undefined;
refoptionalreadonly ref?: Ref<HTMLInputElement> | undefined;

The native <input type="radio">.