Timeline
Vertical activity feed with dots, connectors, timestamps and descriptions.
Import
tsx
import { Timeline, TimelineItem, TimelineDot, TimelineContent, TimelineTitle, TimelineTime, TimelineDescription } from "@cooud-ui/ui";
bash
npx cooud-ui add timeline
Examples
API Reference
Generated from the component's exported types.
TimelineItemProps
Extends LiHTMLAttributes<HTMLLIElement>
| Prop | Type | Default | Description |
|---|---|---|---|
connector | boolean | true | Render the trailing connector line below this item's dot. Defaults to `true`; the rail draws a line down to the next event. Set `false` on the final item so the rail stops at its dot (auto-detected when the item is the last child of a , so this is rarely needed by hand). |
TimelineDotProps
Extends Omit<HTMLAttributes<HTMLSpanElement>, "color">, Omit<VariantProps<typeof timelineDotVariants>, "withIcon">
| Prop | Type | Default | Description |
|---|---|---|---|
icon | ReactNode | — | Optional glyph (e.g. a `lucide-react` icon) rendered inside the dot. When present the dot becomes a ring-bordered chip sized to hold it; otherwise it is a small solid disc. |