A set of tab panels that are displayed one at a time.
Simple example for GTab
const items = [
{
text: 'tab 1',
active: true,
key: 'tab1',
},
{
text: 'tab 2',
key: 'tab2',
},
{
text: 'tab 3',
key: 'tab3',
},
]
<GTab
v-model="tab"
:items="items"
/>
glorious:{
components:{
tab:{
props:{
color:'green',
}
}
}
}
Prop | Type | Default |
---|---|---|
model value | any | |
items | Array<object> |