Chain

Every page that links here, with the anchor text they used.
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/tab-chain

About this component

Tabs with a chain for an underline: the whole chain runs along under the row, slack and dim, and the stretch under the chosen tab is pulled taut and bright. Pick another and the links run through to it, as if the chain were being hauled along.

Dependencies
None
Difficulty
Intermediate
Reduced motion
Respected
Theme
Light and dark
Follows page color-scheme

Triggers3

  • Click
  • State change
  • Continuous

Techniques4

  • Radial gradient
  • Gradient
  • CSS transition
  • CSS variables

Accessibility

Keyboard and screen readers

Real ARIA tabs: arrow keys, Home and End move between tabs, only the selected tab is in the Tab order, and each panel is labelled by its tab. Decoration is aria-hidden.

Reduced motion

The chain and the taut stretch jump without running.

Use it in anything you build, commercial and client work included. Licence

More tabs

See all
A kitchen at one-sixth scale, with a working tap.
ClaymationGet code
Full power, rotate at 140 knots, gear up.
CorkscrewGet code
Narrow through the thigh, tapered to the ankle.
DenimGet code
Faces, sizes and the measure for running text.
DescenderGet code