Zazz Design Framework
Components

Tabs

A CSS-first tab group with radio-driven panels and keyboard enhancement.

Tabs are CSS-first: grouped input[type="radio"][role="tab"] inputs drive the panels and the sliding indicator. Wrap the pattern in <tab-group class="tabs"> to add orientation-aware keyboard navigation: Left/Right for horizontal tabs, Up/Down for vertical tabs, plus Home/End and wrap-around. Panel order must match the radio order.

Without JavaScript, the grouped radios still select panels natively. The preview loads the required script automatically; open the JS tab to inspect the custom element.

Default

Loading components…

API

AttributeWhereValues
<tab-group>rootCustom element that carries .tabs
data-orientationrootvertical (horizontal is default)

On this page