Skip to content

TinyStuff/react-scrollable-timeline

Repository files navigation

react-scrollable-timeline

demo (https://tinystuff.github.io/react-scrollable-timeline/storybook-static/)

npm install react-scrollable-timeline
const events = [{
    start: Date,
    end: Date,
    groupId: 'groupId',
    title: 'eventtitle'
}];

<Timeline
    events={events}
    groups={groups}
    groupKey={"groupId"}
  />

Props

interface TimeLineProps {
  events: Event[]
  groups?: Groups
  groupKey?: string
  startDate?: Date
  endDate?: Date
  width?: number
  interval?: number
  resourceHeaderWidth?: number
  getGroupData?: any
  resourceNode: any
  itemNode?: any
  dateNode?: any
  onEventClick?: (Event) => void
}