Toggle

Toggle is a form component that allows the user to toggle between two states.

Preview


Properties

  • Name
    name
    Type
    string
    Description

    The name of the toggle.

  • Name
    label
    Type
    string
    Description

    The label of the toggle.

  • Name
    onChange
    Type
    React.ChangeEventHandler<HTMLInputElement>
    Description

    toggle change event handler.

  • Name
    activeColorClass
    Type
    string
    Description

    The color of the toggle when it is active.

  • Name
    inactiveColorClass
    Type
    string
    Description

    The color of the toggle when it is inactive.


activeColorClass/inactiveColorClass