Zellige

Glaze
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-zellige

About this component

Four hand-glazed tiles set in grout, each with an eight-point star. Unpicked tiles are plain cream; the one you pick floods with deep glaze from its centre and its star turns to gold.

Triggers

  • Click
  • State change
  • Fill

Techniques

  • clip-path
  • Radial gradient
  • CSS transition
  • SVG
  • CSS variables

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

Native radios in a fieldset with a visually hidden legend ("Glaze"), each in a <label> and named by aria-label (Cobalt, Teal, Saffron, Oxblood); the tiles are aria-hidden. :focus-visible outlines the tile.

Reduced motion

The flood is switched off and the tile is shown glazed at once.

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

More radios

See all
ElementsGet code
HomingGet code
Range
GlideGet code
Size
MagnifyGet code