Review queued work
Queued prompts0/1
- Waiting for the current reply.
Collapsible prompt and todo sections with completion counts, attachments, and item actions.
npm install @noorddev/vlak-react
Load the stylesheet once at your app root, then import the components you use.
import "@noorddev/vlak-react/css";
import { WorkQueue } from "@noorddev/vlak-react";Per-component imports are available at @noorddev/vlak-react/components/work-queue.
npx @noorddev/vlak-cli add work-queue
Adds the component and its dependencies to components/vlak/. Follow the StyleX setup to compile the source in your application.
npx shadcn add https://vlak.dev/r/work-queue.json
Installs the same source through the shadcn CLI.
"use client";
import { useState } from "react";
import { WorkQueue } from "@noorddev/vlak-react";
export function ReviewQueue() {
const [completed, setCompleted] = useState(false);
return <WorkQueue sections={[{ id: "todos", title: "Next steps", items: [
{ id: "review", content: "Review the brief", completed },
] }]} onItemCheckedChange={(_sectionId, _itemId, checked) => setCompleted(checked)} />;
}See the integration example to compose these components with your application's model and data.
Supplied prompt and todo sections. Checking a row requests a change; the application owns scheduling.
| Prop | Type | Default | Description |
|---|---|---|---|
sectionsrequired | readonly WorkQueueSection[] | ||
label | string | "Work queue" | |
onItemCheckedChange | (sectionId: string, itemId: string, checked: boolean) => void | ||
emptyMessage | ReactNode | "Nothing queued." |
Also accepts HTMLAttributes<HTMLElement>.
The ref reaches HTMLElement.
| Keys | Does |
|---|---|
| Tab | Moves through the supplied native controls in reading order |
| Enter, Space | Activates focused buttons and disclosure summaries |
The same styles are available as CSS. Native HTML provides the static presentation; React or application code supplies state updates and actions.
npm install @noorddev/vlak
import "@noorddev/vlak/css";
<section class="rs-work-queue" aria-label="Work queue"><details class="rs-work-queue-section" open><summary>Next steps, 0 of 1 complete</summary><ul class="rs-work-queue-list"><li class="rs-work-queue-item">Review the brief</li></ul></details></section>