Request Lifecycle Preview

View registry JSON

A persistent request card with Asked, Planned, Shipped and Answered scenes.

Install with the shadcn CLI

npx shadcn@4.21.5 add @cavemio/request-lifecycle-preview
First install? Configure @cavemio once

Run npx shadcn@4.21.5 init if shadcn is not set up, then merge this entry into the registries field in your existing components.json. Keep your other settings and registries.

components.json
{
  "registries": {
    "@cavemio": "https://registry.cavemio.dev/r/cavemio-{name}.json"
  }
}

Overview

A persistent request card with Asked, Planned, Shipped and Answered scenes.

Four lifecycle scenes with local demo content. Supply your own data and connect the selected stage to your application.

import { RequestLifecyclePreview } from "@/components/request-lifecycle-preview";

<RequestLifecyclePreview stage={stage} data={requestData} />

Props

PropTypeDescription
stageRequestLifecycleStageRequired. Current stage of the request lifecycle.
dataRequestLifecycleDataRequired. Request title and description, votes, voters, activity, roadmap, release, and email content.
labels{ pending?: string; planned?: string; completed?: string; votes?: string; emailed?: string; voters?: string; justNow?: string; }Optional. Translations for lifecycle status and supporting labels.
classNamestringOptional. Additional CSS classes for the root element.
styleCSSPropertiesOptional. Inline styles for the root element.
ariaLabelstringOptional. Accessible name for the component.