Switch

  • Usage

    This component contains a button that will switch between two states. Each state can have its own text, style, and asset (if any) according to its active / inactive state.

    The state is reflected in the value of the attribute aria-pressed.

    This component can be used to submit a form, either via the default action set on the parent form element, or via a specific formaction provided as props to the Button component.

    Resources

    About

    Website and illustrations by Patricia Boh.