Line height

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-line-height

About this component

A line height picker on a real paragraph: tight, normal or loose eases the lines apart or together, with faint rules marking each line box and a bracket measuring one of them.

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

Triggers2

  • Click
  • State change

Techniques3

  • @property
  • CSS transition
  • Gradient

Accessibility

Keyboard and screen readers

A role="radiogroup" with an aria-label around native radio inputs sharing one name, so the arrow keys move the choice and Tab enters the group once; :focus-visible on the input outlines its option.

Reduced motion

The lines change at once.

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

More radios

See all
Oven modeGet code
Plug typeGet code
Mic patternGet code
RepeatGet code