Tabs

Ready to use Tailwind CSS tab components with production-ready, copy-paste HTML code. Use them as they are, or as a starting point to build beautiful websites.

Tabs are one of those interface patterns that's super common but surprisingly easy to get wrong, especially the active state and accessibility. We have a few layouts: underline tabs, pill/filled tabs, tabs in a card, and vertical tabs. All of them are pure HTML and CSS, no JavaScript. The markup uses proper role="tablist" and aria attributes so they're screen reader friendly out of the box.

Tailwind

Frequently asked questions

Underline tabs, filled pill tabs, tabs inside a card container, and a vertical side-tab layout. A few with icon-plus-label and some with a badge count.

No. The tab components are purely HTML and CSS. If you want the panels to actually switch content you'd wire that up yourself with a small JavaScript click handler.

Yes. The markup includes proper ARIA roles and attributes. You'd want to add arrow key navigation in JavaScript for full ARIA compliance if you're implementing the switching behavior.

Related Tailwind CSS components

More free, copy-paste Tailwind CSS components to use in your projects.