Rec
00:12
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardRec(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/card-recAbout 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