Skip to main content

Segmented Control

Demo

zeta-web v0.6.6
Web Components

A segmented control is a linear set of two or more segments, each of which functions as a mutually exclusive button. Like buttons, segments can contain text or images. Segmented controls are often used to display different views.

To listen for changes, add a click event listener to the zeta-segmented-control element.

To set the active segment, set the active property on the zeta-segmented-item element.

Storybook

https://design.zebra.com/web/storybook/?path=/docs/components-segmented-control--docs

Slots

NameDescriptionType
defaultThe content of the segmented control. Should be a collection of zeta-segmented-item elements.zeta-segmented-item[]

Inherited Attributes

NameDescriptionTypeDefaultInherited From
roundedWhether the component is rounded or sharp.When true, rounded will set the border radius of the first child, and any children with class 'contourable-target' to --radius-minimal.Otherwise, this value will be --radius-none.boolean | undefinedtrueContourable

Figma

https://www.figma.com/design/JesXQFLaPJLc1BdBM4sisI/%F0%9F%A6%93-ZDS---Components?node-id=22683-71169