Intro
The Switch (DNA) component defines the standardized switch pattern for Data & Analytics products, providing consistent behavior and usage guidance for binary toggle interactions across experiences.
When to Use
Do
Use the switch:
- When a change takes immediate effect.
- With static text (i.e., text stays the same regardless of the switch’s state).
- When there are 2 or more switches in a group, use a group label or title
Don't
Don't use a switch:
- If the user has to choose several options or perform extra steps for changes to become effective. Use a checkbox instead.
- With dynamic text (i.e., text changes based on the switch’s state).
- With a group label or title for a single switch. Use the switch text to describe the function instead.
Anatomy
- Label or Title (optional): Describes a group of 2 or more related switches
- Switch: Switch component from the SAP Web UI Kit that can be toggled on and off
- Text (optional): Describes the switch’s function
Anatomy of the Switch (DNA)
Adding Additional Switches
Steps
- Select the Switch Group slot.
- Click and drag the white handle downward to add switches, or drag it upward to remove switches.
- Alternatively, you can add a switch by duplicating or copy/pasting an existing switch inside the Switch Group.
Common Switch Patterns
Single Switch
Single Switch
Switch Group with Label (Vertical)
Switch Group with Label (Vertical)
Switch Group with Label (Horizontal)
Switch Group with Label (Horizontal)
Switch Group with Title
Switch Group with Title