Build passed
Production docs compiled successfully.
Review opened
Example coverage moved to the next batch.
Timeline
Displays a sequence of events.
Preview
Usage
"use client";
import { Text, Timeline, TimelineContent, TimelineDot, TimelineItem, TimelineSeparator } from '@photonix/ultimate';
export default function TimelineBasicExample() {
return (
<Timeline>
<TimelineItem>
<TimelineSeparator><TimelineDot variant="success" /></TimelineSeparator>
<TimelineContent>
<Text variant="title-sm">Build passed</Text>
<Text variant="body-sm" color="secondary">Production docs compiled successfully.</Text>
</TimelineContent>
</TimelineItem>
<TimelineItem>
<TimelineSeparator><TimelineDot variant="primary" /></TimelineSeparator>
<TimelineContent>
<Text variant="title-sm">Review opened</Text>
<Text variant="body-sm" color="secondary">Example coverage moved to the next batch.</Text>
</TimelineContent>
</TimelineItem>
</Timeline>
);
}Component API
Timeline
Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | - | Children elements (TimelineItem) |
TimelineDot
Prop | Type | Default | Description |
|---|---|---|---|
variant | "primary" | "default" | "success" | "error" | "warning" | 'default' | Variant/Color of the dot |
children | React.ReactNode | - | Custom icon or content inside the dot |
TimelineItem/Separator/Content
Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | - | Content. |
className | string | - | Additional CSS class. |
On this page
Preview
Component API