Skip to content

Tabs โ€‹

A horizontal tab strip with sizes, color variants, three visual styles (underline / pill / ghost), optional count badges, optional SVG icons via slot, and per-item disabled state. Content panes live outside the strip โ€” drive them off the bound model-value. Toggle Vue / CSS to switch the live demo and source together.

Basic โ€‹

Three tabs with text panes that swap on click.

Vue SFC

Sizes โ€‹

Small, medium and large.

Vue SFC

Colors โ€‹

All built-in color variants.

Vue SFC

Variants โ€‹

underline, pill and ghost.

Vue SFC

Badges โ€‹

Tabs with trailing count badges.

Vue SFC

Icons โ€‹

Leading SVG icons via the icon-{id} slot.

Vue SFC

Disabled โ€‹

Whole-strip disabled, plus per-item disabled.

Vue SFC

Event log โ€‹

Live log of mno-click events.

Vue SFC

Customized โ€‹

Override per-element styling with cssClass (Vue) or utility classes (CSS).

Vue SFC

Types โ€‹

Importimport { TabsProps } from 'mono-helper'
PropValueDefaultDescription
itemsTabItem[][]List of tabs to render.
modelValuestring''Two-way bound id of the active tab.
valuestring''Id of the active tab (kept in sync with modelValue).
size'sm' | 'md' | 'lg''md'Size of the tabs.
color'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info''primary'Color theme of the tabs.
variant'pill' | 'underline' | 'ghost''underline'Visual style of the tabs.
disabledbooleanfalseDisables interaction with all tabs.
cssClassTabsCssClass{}Per-part class overrides for styling internal elements.