Skip to content
Components92 / 118

Filter Tabs

Category tabs whose pill travels like an inchworm: the leading edge reaches out first, the trailing edge catches up, and it squashes as it lands with a small bounce. Labels flip colour exactly where the pill covers them, and the pill leans toward the tab you point at.

TabsFilterNavigationSpringsSquash & stretchGSAP
Pick a categoryPoint at a tab to see the pill lean

Tweak

LIVE

Look

14px

Props

9 props
  • tabsstring[]
    The categories.
  • valuestring
    Controlled value.
  • defaultValuestring
    Starting value (the first tab by default).
  • onValueChange(value) => void
    Called when the choice changes.
  • sizenumber
    Text size, px (everything scales from it).default 14
  • pillstring
    Pill colour.default "#ececec"
  • inkstring
    Text on the pill.default "#111111"
  • mutedstring
    Text off the pill.default "rgba(255,255,255,.78)"
  • classNamestring
    Extra classes.