Timeline
Timeline component with dots, icons or cards to show events in chronological order.
How to use it
Run npx @blossomui/react add timeline, or copy src/components/UI/Timeline/Timeline.tsx into your React project and import it.
import { Timeline } from './components/ui/Timeline'Props
TimelineItem
| Prop | Type | Description |
|---|---|---|
| title (required) | string | |
| date (required) | string | Date or time of the event. |
| description | string | |
| icon | ReactNode | Icon shown in the marker when the variant is `icons`. |
| pending | boolean | Pending events are shown dimmed. |
TimelineProps
| Prop | Type | Description |
|---|---|---|
| color | string | Accent color of this component: any CSS color. Without it the component uses `--blossom-accent`, which is pink by default. |
| items (required) | TimelineItem[] | |
| variant | 'dots' | 'icons' | 'cards' | `dots` is a simple marker, `icons` uses the icon of each item and `cards` wraps every event in a card. |