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
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
.
Slots
Name Description (default)
The content switcher items.
Events
Event Name Description dds-change
Fired when the content switcher is changed. *
CSS Parts
Part Name Description base
The main content switcher container.
Components
Content switcher item
<dap-ds-content-switcher-item/>
Attributes
Property Type Default Description value
string
The value of the segmented control item. checked
boolean
false
The checked state of the segmented control item. disabled
boolean
false
The disabled state of the segmented control item. name
string
The name of the segmented control item.
Slots
Name Description iconcontent
The icon content of the segmented control item.
Events
No custom events available.
CSS Parts
Part Name Description input
The input of the segmented control item.