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 โ
Import
import { TabsProps } from 'mono-helper'| Prop | Value | Default | Description |
|---|---|---|---|
items | TabItem[] | [] | List of tabs to render. |
modelValue | string | '' | Two-way bound id of the active tab. |
value | string | '' | 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. |
disabled | boolean | false | Disables interaction with all tabs. |
cssClass | TabsCssClass | {} | Per-part class overrides for styling internal elements. |