Grapes homepage1.57.0
  • Guide
  • Tokens
  • Components
    Grapes on GithubGrapes on Figma
    Interaction
    • Button
    • IconButton
    • FloatingActionBar
    • Link
    Icons
    • Icon
    • HighlightIcon
    Form
    • AmountInput
    • Autocomplete
    • AutocompleteMultiple
    • AutocompletePlace
    • CheckboxBox
    • CheckboxField
    • DatePicker
    • FormField
    • Input
    • OptionGroup
    • PasswordInput
    • PhoneInput
    • RadioBox
    • RadioField
    • RadioGroup
    • Select
    • SwitchField
    • TextArea
    • TextInput
    • Upload
    • UploadButton
    Feedback
    • Badge
    • Banner
    • Callout
    • EmptyState
    • Modal
    • ModalSlideshow
    • DeprecatedModalSlideshow
    • PageModal
    • Skeleton
    • Tag
    • Toast
    • Tooltip
    Data display
    • Accordion
    • Avatar
    • Box
    • Calendar
    • CalendarRange
    • CollapsibleList
    • FileCard
    • InfoTip
    • ListBox
    • ListView
    • Panel
    • SidePanel
    • DeprecatedPreview
    • Table
    • Timeline
    • useDateFormatter
    Navigation
    • DropdownItem
    • DropdownMenu
    • Navigation
    • NavigationItem
    • Popover
    • Tabs

    Timeline

    The timeline displays a list of events in chronological order.

    View source code
    • Usage
    • Props
    • Accessibility

    Timeline

    • children
      ReactElement<TimelineItemProps, string | JSXElementConstructor<any>> | ReactElement<TimelineItemProps, string | JSXElementConstructor<...>>[]

      The TimelineItem(s) contained within the Timeline

    • className
      string

      className for the element

    • fit
      "content" | "parent"

      Specifies the width of the element

      Default: content
    • renderDate
      (date: Date, locale: string) => string

      Function called to render date

      Default: (date: Date, locale: string) => { return dateFormatter(locale, date, DATE_FORMAT.LONG_WITH_TIME); }

    TimelineItem

    • children
      ReactNode

      Content to render

    • date
      Date

      The element's date

    • renderDate
      (date: Date, locale: string) => string

      Function called to render date