Content switcher
Content switchers allow users to toggle between two or more content sections within the same space on the screen.
Design system docs
Examples
Default
Multi select
You can allow multiple selections by setting the multiSelect
attribute to true
. To set the value
attribute you have to set a comma separated list of values.
Importing
Importing React
Slots
Name Description (default)
The content switcher items.
Attributes
Property Type Default Description multiSelect
boolean
false
Whether the content switcher allows multiple selections. value
string
The value of the content switcher. A comma-separated list if multiSelect
is true
.
Events
Event Name Description dds-change
Fired when the content switcher is changed.
CSS Parts
Part Name Description base
The main content switcher container.