Skip to content

Pill tabs

A pill selector in a rounded track, to compare plans or variants.

  • Tailwind
  • React
  • CSS
  • WordPress
Open in a new tab

Description

The active tab stands out with a solid background and a light shadow, not just color. Full keyboard navigation following the WAI-ARIA tabs pattern.

Code

Loading the code…

Archive contents

onglets-pilules-html-tailwind.zip3 files · 4 Ko

  • index.html6 Ko
  • README.md2 Ko
  • LICENSE.md1 Ko

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • Accessible tabs on large screens that turn into an accordion on phones, with the right ARIA roles in each mode.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Indicative prices sorted by trade in tabs, with the unit of each service, a VAT-inclusive / excl. switch and a free-quote notice.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Vertical tabs

    Coming soon

    A column of tabs on the left and content on the right, for settings and customer area pages.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Understated tabs with an underlined active tab, to organize the information on a product page.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component