Stake

Stake
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-stake

About this component

Three casino chips: 5, 25 and 100. The one you pick rises on a stack of its own colour, striped edges and all, and the last stack drops back to a single chip.

Triggers

  • Click
  • State change
  • Hover
  • Spring

Techniques

  • Conic gradient
  • CSS transition
  • CSS variables
  • Pseudo elements

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

Native radios in a fieldset with a visually hidden legend ("Stake"), each in a <label> and named by aria-label (5, 25, 100); the chips are aria-hidden. :focus-visible outlines the chip.

Reduced motion

The transitions are switched off.

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

More radios

See all
Reagent
VialsGet code
Shipping
VitroGet code
Delivery window
WashGet code
Note
XyloGet code