Tabs
ARIA tablist
Switching between views of the same thing that don't need to be seen together — details / reviews / specs. Not for navigation between pages (that's links), and not for steps (that's Stepper).
Basic
加藤恵
arrow keys / Home / End · current: megumi
Manual
manual activation, text colour — 加藤恵
- One Tab stop for the tab row; arrows move between tabs (in right-to-left pages too), Home / End jump.
activation="manual"waits for Enter or Space before switching, for panels that are slow to show. - Each panel is labelled by its tab.
#tabrenders a tab's content yourself.
Usage
ts
import { BlessTabs } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
tabs* | BlessTab[] | — | |
activation | "manual" | "automatic" | "automatic" | activate on arrow key (automatic) or only on Enter/Space (manual) |
color | "text" | "accent" | "danger" | "accent" | |
label | string | — | |
modelValue | string | "" |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: string] |
Slots
| Name | Scope | Description |
|---|---|---|
tab | { tab: BlessTab; active: boolean; } | |
default | { tab: BlessTab; active: boolean; } |