Status picker
Backlog to Done: the glyph tells the state, the digits choose it.
import { StatusPicker } from "@forgeron/ui";Status
import { StatusPicker, type StatusKind } from "@forgeron/ui";
import { useState } from "react";
export default function Default() {
const [status, setStatus] = useState<StatusKind>("review");
return <StatusPicker value={status} onChange={setStatus} />;
}BacklogTodoIn ProgressIn ReviewDoneCanceled
import { STATUS_NAMES, StatusGlyph, type StatusKind } from "@forgeron/ui";
const all: StatusKind[] = ["backlog", "todo", "progress", "review", "done", "canceled"];
export default function Glyphs() {
return (
<div style={{ display: "grid", gap: 10 }}>
{all.map((s) => (
<span key={s} style={{ display: "inline-flex", alignItems: "center", gap: 10 }}>
<StatusGlyph status={s} size={24} />
{STATUS_NAMES[s]}
</span>
))}
</div>
);
}Status
import { StatusPicker } from "@forgeron/ui";
export default function Custom() {
return (
<StatusPicker
defaultValue="review"
statuses={["todo", "progress", "review", "done"]}
names={{ todo: "New", progress: "Answering", review: "Waiting on client", done: "Solved" }}
/>
);
}Status
Priority
Assignee
Quarter
import {
DatePicker,
PersonPicker,
PriorityPicker,
QuarterPicker,
StatusPicker,
} from "@forgeron/ui";
export default function InARecord() {
return (
<div style={{ display: "flex", flexWrap: "wrap", gap: 6, maxWidth: 560 }}>
<StatusPicker defaultValue="review" />
<PriorityPicker defaultValue={1} />
<PersonPicker people={[{ id: "hb", name: "Hugo Bernard" }]} defaultValue="hb" />
<QuarterPicker years={[2026]} defaultValue="2026-Q4" />
<DatePicker label="Due date" today="2026-11-17" defaultValue="2026-11-18" />
</div>
);
}API → Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | StatusKind | — | backlog, todo, progress, review, done, canceled. |
statuses | StatusKind[] | all six | The states offered, in order. |
names | Partial<Record<StatusKind, string>> | — | Other names for the states. |
value / defaultValue | see type | — | Controlled or not. |
onChange | (value) => void | — | On a new choice. |
variant | "chip" | "field" | "chip" | A record's property, or a form control. |
markOnly | boolean | — | The mark alone, for dense rows. |
className | string | — | Extra classes. |