Skip to content

    Browse components

    Ring Pill

    An incoming-call pill with pulsing rings that expands into accept and decline, then morphs into a live call timer.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/ring-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/ring-pill.json

    Usage

    import { RingPill } from "@/components/ui/ring-pill";
    
    <RingPill
      name="Maya Chen"
      onAccept={() => join()}
      onDecline={() => reject()}
      onEnd={(seconds) => log(seconds)}
    />

    Props

    PropTypeDefaultDescription
    namestring"Maya Chen"Caller name.
    subtitlestring"Incoming call"Line under the name while ringing.
    acceptColorstring"#22c55e"Accept button and live-call accent.
    declineColorstring"#ef4444"Decline and hang-up color.
    resetDelaynumber2500Ms after ending before it rings again (0 = stay ended).
    avatarReactNode—Optional avatar image URL; initials are used otherwise.
    onAcceptReactNode—Called when the call is accepted.
    onDeclineReactNode—Called when the call is declined.
    onEndReactNode—Called with the call length in seconds after hanging up.
    classNamestring—Extra classes for the root element.