Skip to content

    Browse components

    Memo Pill

    A voice-note recorder pill that springs open into live waveform bars and a timer, then collapses the take into a playable, sendable waveform. Input is simulated.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/memo-pill

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/memo-pill.json

    Usage

    import { MemoPill } from "@/components/ui/memo-pill";
    
    <MemoPill onStart={startMic} onStop={stopMic} onSend={(s) => upload(s)} />

    Props

    PropTypeDefaultDescription
    barsnumber28Waveform bar count.
    colorstring"#ef4444"Recording accent.
    maxSecondsnumber60Auto-stop after this many seconds.
    onStartReactNode—Recording started.
    onStopReactNode—Recording stopped, receives seconds.
    onSendReactNode—Send pressed, receives seconds.
    onDiscardReactNode—Trash pressed.
    classNamestring—Extra classes for the root element.