mirukullacode

Tweenly AI Recorder

Component 29

About

Voice recorder pill that morphs from a mic button into a live waveform with timer, pause, cancel and stop, then into a scrubbable playback row.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Tweenly AI Recorder to your project and fits it to your theme.

Code

How Tweenly AI Recorder is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";
import {ThemeProvider as LibraryDemoThemeProvider} from "next-themes";
import {useState} from "react";
import {AiRecorder} from "@/components/ui/tweenly-ai-recorder";
function SourceSpecimen(){
 const [saved,setSaved]=useState<string|null>(null);
 return <div className="flex flex-col items-center gap-6"><AiRecorder maxDuration={30} simulate onRecordingComplete={(blob,ms)=>setSaved(`${(ms/1000).toFixed(1)}s${blob.size?` · ${Math.round(blob.size/1024)} KB`:" · simulated"}`)}/><p className="h-4 text-xs text-muted-foreground" aria-live="polite">{saved?`Saved ${saved}`:"Tap the mic to record"}</p></div>;
}
export default function LibraryRegistryPreview(){return <LibraryDemoThemeProvider defaultTheme="dark" enableSystem={false}><div data-component-demo data-demo-theme="dark" data-theme="dark" className="dark" style={{background:"var(--background)",color:"var(--foreground)"}}><div className="relative w-full min-w-0 max-w-5xl min-h-[400px] flex items-center justify-center"><SourceSpecimen/></div></div></LibraryDemoThemeProvider>}

Dependencies

More by mirukullacode

View all
  • Chart Line

    Chart Line

    32
  • Animated Bar Chart

    Animated Bar Chart

    28
  • Tweenly Chart KPI

    Tweenly Chart KPI

    18
  • Tweenly Chart Radial

    Tweenly Chart Radial

    16
  • Tweenly Image Arc

    Tweenly Image Arc

    15
  • Tweenly Hero Background

    Tweenly Hero Background

    12
  • Tweenly Curved Carousel

    Tweenly Curved Carousel

    12
  • Tweenly Elastic Switch

    Tweenly Elastic Switch

    6