@@ -34,65 +34,65 @@ npm run storybook
3434## Usage
3535
3636``` tsx
37- import { Timeline , TimelineItem } from ' @/components/timeline'
38- import { Check } from ' lucide-react'
37+ import { Timeline , TimelineItem } from ' @/components/timeline' ;
38+ import { Check } from ' lucide-react' ;
3939
4040export default function Example() {
4141 return (
4242 <Timeline >
4343 <TimelineItem
44- date = { new Date (" 2024-01-01" )}
44+ date = { new Date (' 2024-01-01' )}
4545 title = " Feature Released"
4646 description = " New timeline component is now available"
4747 icon = { <Check />}
4848 status = " completed"
4949 />
5050 <TimelineItem
51- date = { new Date (" 2024-01-02" )}
51+ date = { new Date (' 2024-01-02' )}
5252 title = " In Progress"
5353 description = " Working on documentation"
5454 status = " in-progress"
5555 />
5656 <TimelineItem
57- date = { new Date (" 2024-01-03" )}
57+ date = { new Date (' 2024-01-03' )}
5858 title = " Upcoming"
5959 description = " Planning future updates"
6060 status = " pending"
6161 />
6262 </Timeline >
63- )
63+ );
6464}
6565```
6666
6767## Props
6868
6969### Timeline
7070
71- | Prop | Type | Default | Description |
72- | ---------- | --------------------| --------- | ----------------------- |
71+ | Prop | Type | Default | Description |
72+ | -------- | -------------------- | ------- | -------------------- |
7373| size | 'sm' \| 'md' \| 'lg' | 'md' | Size of the timeline |
7474| iconsize | 'sm' \| 'md' \| 'lg' | 'md' | Size of icons |
7575
7676### TimelineItem
7777
78- | Prop | Type | Default | Description |
79- | ----------------| --------------------------------------------- | ------------- | ---------------------------- |
80- | date | Date \| string \| number | - | Date of the event |
81- | title | string | - | Title of the event |
82- | description | string | - | Description of the event |
83- | icon | ReactNode | - | Custom icon |
84- | iconColor | 'primary' \| 'secondary' \| 'muted' \| 'accent' | 'primary' | Color theme of the icon |
85- | status | 'completed' \| 'in-progress' \| 'pending' | 'completed' | Current status |
86- | loading | boolean | false | Show loading state |
87- | error | string | - | Show error state |
78+ | Prop | Type | Default | Description |
79+ | ----------- | ----------------------------------------------- | ----------- | ------------------------ |
80+ | date | Date \| string \| number | - | Date of the event |
81+ | title | string | - | Title of the event |
82+ | description | string | - | Description of the event |
83+ | icon | ReactNode | - | Custom icon |
84+ | iconColor | 'primary' \| 'secondary' \| 'muted' \| 'accent' | 'primary' | Color theme of the icon |
85+ | status | 'completed' \| 'in-progress' \| 'pending' | 'completed' | Current status |
86+ | loading | boolean | false | Show loading state |
87+ | error | string | - | Show error state |
8888
8989### TimelineTime
9090
91- | Prop | Type | Default | Description |
92- | ---------------- | ---------------------------------------- | ------------- | ---------------------------- |
93- | date | Date \| string \| number | - | Date to display |
94- | format | string \| Intl.DateTimeFormatOptions | - | Date formatting options |
95- | className | string | - | Additional CSS classes |
91+ | Prop | Type | Default | Description |
92+ | --------- | ------------------------------------ | ------- | ----------------------- |
93+ | date | Date \| string \| number | - | Date to display |
94+ | format | string \| Intl.DateTimeFormatOptions | - | Date formatting options |
95+ | className | string | - | Additional CSS classes |
9696
9797## Server-Side Rendering
9898
0 commit comments