interface ToggleRowProfileProps {
    description?: string;
    height?: "small" | "medium" | "large";
    icon: IconType;
    isDisabled?: boolean;
    label: string;
    onChange: ((value, name?) => void);
    value?: boolean;
}

Properties

description?: string

Short description text that appears below the label

height?: "small" | "medium" | "large"

The height of the row

icon: IconType

The icon that is displayed on the left side

isDisabled?: boolean

Disable the toggle switch

label: string

The label for the row

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

The onChange callback

Type declaration

    • (value, name?): void
    • The onChange callback

      Parameters

      • value: boolean
      • Optional name: string

      Returns void

value?: boolean

The value of the toggle switch

Generated using TypeDoc