Component docs
Loading
"use client";
import { Timeline } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
items (required) | readonly TimelineItem[] | — | Items to render. |
defaultValue | string | null | — | Selected id when uncontrolled. |
onValueChange | (value: string) => void | — | Called with the new value (only when it changes). |
orientation | "horizontal" | "vertical" | — | Layout and arrow-key axis. |
value | string | null | — | Selected id (controlled); null for none. |
itemsrequiredreadonly TimelineItem[]
Items to render.
defaultValuestring | null
Selected id when uncontrolled.
onValueChange(value: string) => void
Called with the new value (only when it changes).
orientation"horizontal" | "vertical"
Layout and arrow-key axis.
valuestring | null
Selected id (controlled); null for none.
Other props are passed to the root element (HTMLAttributes<HTMLDivElement>), including className, style, id and aria-* attributes.
const items = [
{ id: "0.3", label: "Released 0.3", meta: "2026-07-14" },
{ id: "0.2", label: "Released 0.2", meta: "2026-03-02" },
];
<Timeline items={items} />