Skip to content

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. #tab renders a tab's content yourself.

Usage ​

ts
import { BlessTabs } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
tabs*BlessTab[]—
activation"manual" | "automatic""automatic"activate on arrow key (automatic) or only on Enter/Space (manual)
color"text" | "accent" | "danger""accent"
labelstring—
modelValuestring""

Events

NamePayloadDescription
update:modelValue[value: string]

Slots

NameScopeDescription
tab{ tab: BlessTab; active: boolean; }
default{ tab: BlessTab; active: boolean; }

Released under the MIT License. Character names and artwork belong to their owners.