Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,30 @@ export default {
}
</script>
```
### Adding is-boxed or is-toggled
To add the classes `is-boxed` or `is-toggled`, add the `boxed`
or `toggled` property to the tabs element.
```vue
<template>
<tabs animation="slide" boxed toggled>
<tab-pane label="Pictures">Pictures Tab</tab-pane>
<tab-pane label="Music">Music Tab</tab-pane>
<tab-pane label="Videos" selected>Video Tab</tab-pane>
<tab-pane label="Documents" disabled>Document Tab</tab-pane>
</tabs>
</template>

<script>
import { Tabs, TabPane } from 'vue-bulma-tabs'

export default {
components: {
Tabs,
TabPane
}
}
</script>
```

## Badges

Expand Down
6 changes: 5 additions & 1 deletion src/Tabs.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div :class="{ 'vue-bulma-tabs': true, [`is-layout-${layout}`]: true }">
<div :class="{ tabs: true, [`is-${size}`]: size, [`is-${alignment}`]: alignment, [`is-${type}`]: type, 'is-fullwidth': isFullwidth }">
<div :class="{ tabs: true, [`is-${size}`]: boxed, [`is-${size}`]: size, [`is-${alignment}`]: alignment, [`is-${type}`]: type, 'is-fullwidth': isFullwidth }">
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I caught this and fixed it in the next commit

<slot name="left-tab-list"></slot>
<tab-list>
<li v-for="(tab, index) in tabPanes"
Expand Down Expand Up @@ -47,6 +47,10 @@ export default {
type: String,
default: ''
},
boxed: {
type: Boolean,
default: false
},
size: {
type: String,
default: ''
Expand Down