This library is still in development and is available only for internal usage at VTEX.
Skip to main content

Switch

Version: 0.132.0

Switch

Switch is a component for customizing configurations. It represents a physical switch that allows users to turn things on or off, providing control over actions and preferences. Tapping a toggle switch is a two-step action: selection and execution. It should reflect an action that triggers a state, never both at once.

When using a standalone Switch you should provide an aria-label property value. As a form component, it should have a label specified to guarantee accessibility.

Help text
Error text
Help textError text
Help textError text
Help textError text
TypeError: Cannot read properties of undefined (reading 'join')