sw-ui-split-button
sw-ui-split-button
Pill-shaped icon button with an optional chevron dropdown — the
atomic building block of <sw-ui-control-bar>’s mic / camera / speaker
buttons.
Renders in two layouts:
- With a chevron menu (a slotted
<sw-ui-dropup>or non-emptyitems): a unified pill split into a main click zone and a chevron click zone with a subtle divider —[ 🎤 | ▲ ]. Clicking the icon area fires the primary event; clicking the chevron opens the dropup. - Without a chevron menu: a single pill button.
Two interaction modes are inferred from which slots have content:
- Toggle mode — both
activeandinactiveslots are populated. Each click flips theactiveattribute and firessw-split-button-togglewith the new state. - Push mode — only the default slot is populated. Each click fires
sw-split-button-clickwithout toggling.
Class: SwUiSplitButton · Module: packages/web-components/src/components/UI/controls/sw-ui-split-button.ts
class: SwUiSplitButton, sw-ui-split-button
Fields
items
items field.
active
active field.