Wanna see some real speed?
Here's what we've shipped recently
The Timeline component provides an elegant way to display chronological events with a responsive layout, smooth animations, and expandable content. Perfect for changelogs, activity feeds, and project histories.
Installation
Usage
Style Variations
Modern Style
The modern style features subtle gradients, hover effects, and icons.
Minimal Style
The minimal style offers a clean and simple design without icons.
Customization
Custom Styling
Custom Button Text
Animation Settings
Props
Prop | Type | Default | Description |
---|---|---|---|
items | TimelineItem[] | Required | Array of timeline items to display |
initialCount | number | 5 | Number of items to show initially |
className | string | - | Additional CSS classes |
showMoreText | string | "Show More" | Text for the show more button |
showLessText | string | "Show Less" | Text for the show less button |
dotClassName | string | - | Classes for the timeline dots |
lineClassName | string | - | Classes for the timeline lines |
titleClassName | string | - | Classes for item titles |
descriptionClassName | string | - | Classes for item descriptions |
dateClassName | string | - | Classes for dates |
buttonVariant | "default" | "outline" | "ghost" | "link" | "ghost" | Button variant |
buttonSize | "default" | "sm" | "lg" | "sm" | Button size |
animationDuration | number | 0.3 | Animation duration in seconds |
animationDelay | number | 0.1 | Delay between animations |
showAnimation | boolean | true | Whether to show animations |
Features
- Responsive design with mobile-first approach
- Smooth animations using Framer Motion
- Expandable content with "Show More/Less"
- Automatic date sorting (newest first)
- Customizable text and styling
- Support for icons in timeline dots
- Accessible markup with proper ARIA labels
- Optional links for each timeline item
- Hover states and transitions