Skip to content

Tabs

Tabs are used to organize content by grouping similar information on the same page.

Import

js
import { MpTabs, MpTabList, MpTab, MpTabPanels, MpTabPanel } from '@mekari/pixel3'

Playground

API

MpTabs

Props
Events
Slots
NameTypeDefault
model-value
Value of tabs.
number -
default-value
Default value of tabs.
number0
id
Id of tabs.
string -
variant-color
Variant color of tabs.
"blue" | "green" | "orange" | "red" | "gray"blue
is-manual
If true, index of tabs will be handle manual.
booleanfalse
is-show-border
If true, border will be show.
booleantrue

MpTabList

Slots
NameType
default
Tab list slot
any

MpTab

Props
Slots
NameTypeDefault
id
Id of tab.
string -
is-disabled
If `true`, tab will be disabled.
booleanfalse

MpTabPanels

Slots
NameType
default
Tab panels slot
any

MpTabPanel

Props
Slots
NameTypeDefault
is-keep-alive
If true, tab panel will be hidden using CSS instead of destroying DOM.
booleantrue

Usage

With badge

With icon

Manual

Dynamic