interface RadioGroupProps {
    className?: string;
    cols?: 1 | 2 | 4;
    errorText?: string;
    isDisabled?: boolean;
    isRequired?: boolean;
    items: RadioGroupItemProps[];
    label?: string;
    labelWeight?: "bold" | "regular";
    name?: string;
    onChange?: ((value, name?) => void);
    value: string;
}

Properties

className?: string

Custom class to give the html component

cols?: 1 | 2 | 4

Number of cols to render

errorText?: string

Error Text

isDisabled?: boolean

Disables all radio items

isRequired?: boolean

Is required icon

Radio items to render

label?: string

Label to show for the input

labelWeight?: "bold" | "regular"

Configurable label weight

name?: string

field name

onChange?: ((value, name?) => void)

onChange event for field

Type declaration

    • (value, name?): void
    • onChange event for field

      Parameters

      • value: string
      • Optional name: string

      Returns void

value: string

radio input value. Empty string represents no item selected

Generated using TypeDoc