Room

3 lights on
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-room

About this component

A room control in dark glass with three beams of warm light behind it. The brightness slider dims and softens the light you see through the glass, each switch turns its own beam on or off, and the power button switches them all.

Triggers

  • Click
  • State change
  • Card
  • Glow
  • Gradient

Techniques

  • @property
  • CSS transition
  • Filter
  • Gradient
  • Pseudo elements
  • CSS variables

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

Brightness is a native range named Brightness with aria-valuetext in percent; each light is a native checkbox with role=switch, labelled by its name; the power button is a toggle with aria-pressed named All lights; the room pill names the room and its action. A visually hidden role=status line says how many lights are on.

Reduced motion

The transitions apply at once.

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

More cards

See all
Authenticator

TokenGet code
Not tracking
  • Billing redesign
  • Onboarding copy
  • Sync notes
TrackerGet code

Pro

Billing

  • Unlimited projects
  • Usage analytics
  • Priority support
BeamGet code
Petal

Guided
Onboarding

Activation

001
BloomGet code