@hmiproject/helio-sdk
    Preparing search index...

    Type Alias SwitchProps

    type SwitchProps = {
        ariaLabel?: string;
        checked: boolean;
        disabled?: boolean;
        onCheckedChange(checked: boolean): void;
    }
    Index

    Properties

    ariaLabel?: string

    Provide an accessible name for screen readers. The switch renders no visible label of its own, so set this unless a visible label is associated with it elsewhere.

    `Dark mode`
    
    checked: boolean

    The checked state of the switch.

    disabled?: boolean
    false
    

    Methods

    • Called when the user toggles the switch.

      Parameters

      • checked: boolean

      Returns void