structyl

Timeline API

View component

The full prop reference for the Timeline component. A chronological event list.

Import

tsx
import { Timeline } from '@structyl/styled';

Props

Timeline.Root

Timeline list root.

PropTypeDefault
position#'left' | 'right' | 'alternate'

Timeline content position.

'right'
className#string

Additional Tailwind classes merged with the component defaults.

Timeline.Dot

Timeline marker.

PropTypeDefault
color#'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'destructive' | 'muted'

Marker color.

'primary'
variant#'filled' | 'outlined'

Marker treatment.

'filled'
className#string

Additional Tailwind classes merged with the component defaults.

Timeline.Item / Separator / Content

Timeline composition parts.

PropTypeDefault
className#string

Additional Tailwind classes merged with the component defaults.

Source code

If you didn't find what you need here, read the component implementation .

structyl — Accessible React Component Library