Relief

Hand-built and coiled, fired twice in the studio kiln.
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/tab-relief

About this component

Sculpture tabs cast as tiles on a plate under a low light from the top left: the chosen tile stands proud of the plate with its sides and long shadow showing, and when you pick another it sinks flush as the new one rises.

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

Triggers3

  • Click
  • State change
  • 3D

Techniques3

  • CSS transition
  • Gradient
  • Transform only

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 tiles change without moving.

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

More tabs

See all
Just you against the clock, ten rounds.
RicochetGet code
Nine new tasks, three of them due this week.
SagGet code
The front page and everything else since this morning.
ShearGet code
Twelve laps of the short circuit, dry line.
SkidGet code