Rec

00:12

Recording

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-rec

About this component

A voice recorder in black and ember orange. The time counts up in big digits while a live waveform builds across a hot orange strip, dark bars rising from the left and scrolling once it is full. The red key pauses and resumes, the flag key plants a white marker where you are, and stop rolls the strip up into a saved chip; press record for the next take.

Triggers

  • Card
  • State change
  • Click
  • Loop
  • Glow

Techniques

  • CSS variables
  • CSS transition
  • Interval
  • Keyframes
  • State machine
  • Gradient

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A section labelled Voice recorder. The three keys are native buttons: Add marker, Record or Pause (aria-pressed while recording) and Stop and save, with visible focus rings; the flag and stop keys are disabled once a take is saved. The time is written as text and a visually hidden polite live region announces Recording, Paused and Saved with the length; the strip, bars, markers and status dot are aria-hidden.

Reduced motion

The dot does not blink, markers appear without the plant and the strip changes state as a cut.

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

More cards

See all
ScanGet code
SignGet code

7h42m

SleepGet code

SorbetGet code