Spectrum Design Data
  • Components
  • Tokens
  • Registry
  • AI
  • Tools
  • Switch

    Spectrum docs

    Switches allow users to turn an individual option on or off. They are usually used to activate or deactivate a specific setting.

    Property Type Values Default Required Description
    label string - - No -
    isSelected boolean - false No -
    size string s, m, l, xl m No -
    isEmphasized boolean - false No -
    isDisabled boolean - false No -
    isReadOnly boolean - false No -
    state string default, hover, down, keyboard focus default No -