Tabs
This component is still under development. Please only use the snippets provided below to avoid breaking changes.
View the official docs here
The Tabs
component makes light work of creating a tabbed interface with the Bootstrap JavaScript plugin built in.Make sure you set one of your Tabs to active
via your data.
API
Tabs
import { Tabs } from 'astro-bootstrap'
Name | Type | Default | Description |
---|---|---|---|
tabs required | { title: string; body: string; active: boolean}[] | Data for populating tabs. | |
id | string | Append id to tab div. | |
fade | boolean | true | Enable fade transition between tabs. |
listClass | string | Append class to nav-tabs div. (Tabs.List component) | |
itemClass | string | Append class to nav-item div. | |
contentClass | string | Append class to nav-content div. | |
paneClass | string | Append class to nav-pane div. |