TabPanels
Swipeable panel pager
Swipeable panels that go with a set of tabs on phones — the content under Tabs, BottomTabs or a segmented control, changed by the tabs or by a sideways swipe.
Basic
News
panel “news” — swipe left / right
v-modelis the current panel's key, shared with the tabs;next()/prev()step in code;loopwraps.- Each panel is a group named by its key. The tabs themselves stay the keyboard way in; the swipe is extra.
Usage
ts
import { BlessTabPanels } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
panels* | T[] | — | panel keys, in order; pair with BlessTabs values |
swipeable | boolean | true | |
loop | boolean | — | wrap from last to first |
threshold | number | 60 | px to change panel |
modelValue* | T | — |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: T] |
Slots
| Name | Scope | Description |
|---|---|---|
default | { panel: T; index: number; } |