Tabs
Bar of buttons to switch between content panels
Tabs
Go to top
Basic tabs
Use <button class="bf-tab"> inside .bf-tabs and .bf-tabs-container to
style tab buttons. Mark a tab as active with .bf-tab-active:
Tab content
Styled variant
Add .bf-tabs-styled on the container for an alternative styling.
Tab content
Link tabs
Links inside .bf-tabs will render as tab buttons. Mark a link tab as active
with .active.
Tab content
No background
Tab content
Active tab background
To set background of active tab for .bf-tabs-styled variant use --bf-tabs-content-bg variable. Make sure to match background with your content.
bfc-base-3-bg
Badge in Tabs
You can include a badge inside tab labels. Add margin so the badge doesn't stick to the text.
Tab content