Zephora UI

Data

Timeline

Ordered timeline of events with connector lines, colored dot markers, optional icons and vertical, alternating or horizontal layouts.

Import

import { Timeline, TimelineItem } from "@zephora/react";

Examples

Items array

  1. Jan 2026
    v1.0 released
    First stable release.
  2. Mar 2026
    v1.1 in review
    DataTable virtualization.
  3. Q4 2026
    v2.0 planned
    Theming overhaul.

Composed children

Use `TimelineItem` children for arbitrary content and per-item colors.

  1. 09:12
    Order placed
  2. 09:13
    Payment confirmed
  3. 14:40
    Out for delivery
    Courier: DHL — track #82412
  4. Delivered

Alternate layout

`alternate` zigzags the items around the axis (vertical orientation only).

  1. Jan 2026
    v1.0 released
    First stable release.
  2. Mar 2026
    v1.1 in review
    DataTable virtualization.
  3. Q4 2026
    v2.0 planned
    Theming overhaul.

API

Timeline props

PropTypeDefaultDescription
itemsTimelineItemData[]Items to render (`{ title, description?, time?, icon?, color? }`); alternatively pass `TimelineItem` children.
orientation"vertical" | "horizontal""vertical"Axis direction.
alternatebooleanfalseAlternate item sides (zigzag). Vertical orientation only.
unstyledbooleanfalseHeadless mode — skips Zephora styling.

TimelineItem props

PropTypeDefaultDescription
titleReactNodeEvent title.
descriptionReactNodeSecondary text under the title.
timeReactNodeTimestamp rendered above the title.
iconReactNodeCustom marker icon rendered inside the dot.
color"primary" | "success" | "warning" | "danger" | "info""primary"Dot accent color.
unstyledbooleanHeadless mode — inherits from the parent Timeline by default.