Timeline
Overview
The Timeline component renders a list of events in the order they happened, each with a marker on a line down the side.
Reach for it for a record of what happened, in order: an order's history, who did what on a support ticket, a changelog, an activity feed on a dashboard, or a company's milestones. Each event has a title, a time and whatever else you want to say about it, and a marker on the rail beside it.
By default it's a record and marks nothing. With active it marks progress, for something that
moves along on its own and is reported to the user, like a parcel on its way or a deployment
rolling out. A journey the user takes themselves, like a wizard or a checkout, is
Steps.
It's an ordered list, each title is a real heading, and the states are read out as words. The dots also draw each state as a shape of its own.
Bulma has no timeline, so Timeline brings its own styles, in bestax.css and its variants, or in
extras.css next to your own Bulma. Its class names are the ones the old bulma-timeline
extension used. That extension doesn't theme with Bulma v1, so if a page still loads its CSS,
remove it, or both stylesheets style the same classes.
Import
import { Timeline } from '@allxsmith/bestax-bulma';
Usage
Basic Usage
Put a Timeline.Item in for each event, with a title, a time and a dateTime, and anything
else about it as children. Here's an order's history, newest first, under the page's own h2, so
the titles are h3s.
<> <Title as="h2" textSize="5"> Order history </Title> <Timeline titleAs="h3"> <Timeline.Item title="Delivered" time="16 October 2026, 11:40" dateTime="2026-10-16T11:40" color="success" > Signed for by A. Smith. </Timeline.Item> <Timeline.Item title="Shipped" time="14 October 2026, 08:12" dateTime="2026-10-14T08:12" > <Paragraph> Tracking number{' '} <Link href="#track" textTransform="underlined"> 1Z999AA10123456784 </Link> </Paragraph> </Timeline.Item> <Timeline.Item title="Order placed" time="12 October 2026, 09:30" dateTime="2026-10-12T09:30" /> </Timeline> </>
time is what the reader sees, so put the whole date in the words: screen readers mostly read the
text. dateTime is the same moment for machines, and with it the time renders in a <time>.
Formatting the date is up to your app, which knows its locale. The timeline renders the items in
the order you write them, so newest first is just the order you put them in.
Progress
active marks progress. The item at that index, counting from 0, is current, the ones before it
are completed, and the ones after it are upcoming. pending adds one more item after the children,
for what's under way. A progress timeline reads oldest first and ends at the current or the pending
item.
<Timeline titleAs="h3" active={2} pending="Out for delivery"> <Timeline.Item title="Order placed" time="12 October, 09:30" dateTime="2026-10-12T09:30" /> <Timeline.Item title="Packed" time="13 October, 14:05" dateTime="2026-10-13T14:05" /> <Timeline.Item title="Shipped" time="14 October, 08:12" dateTime="2026-10-14T08:12" > Left the warehouse in Leeds. </Timeline.Item> </Timeline>
A completed item is a solid dot, the current one a dot with a ring around it, an upcoming one an
empty ring, and the pending one an open ring, Bulma's loader, with a dashed line leading to it. The
line is filled up to the current item. active={-1} marks every item upcoming, and an index past
the last marks them all completed.
Each child counts as one item, with Fragments and arrays opened up, so .map() works as you'd
expect. A component of your own around a Timeline.Item still gets its state, but a component that
renders nothing still counts, so render one item per child.
End
align="end" puts the rail at the end of the line, with the text against it.
<Timeline titleAs="h3" align="end" active={1} pending="Out for delivery"> <Timeline.Item title="Order placed" time="12 October" dateTime="2026-10-12" /> <Timeline.Item title="Shipped" time="14 October" dateTime="2026-10-14" /> </Timeline>
Alternate
align="alternate" runs the rail down the middle, with the items taking turns on each side and
each time across the rail from its title. Below Bulma's tablet breakpoint it's the same as start,
with the time back under the title. Nothing moves up or down, so the reading order is the order on
screen. In a narrow column on a wide screen, use start instead.
<Timeline titleAs="h3" align="alternate" color="primary"> <Timeline.Item title="Founded" time="March 2019" dateTime="2019-03" icon="flag" > Two people and a spare room. </Timeline.Item> <Timeline.Item title="First office" time="June 2021" dateTime="2021-06" icon="building" > Twelve of us, in Leeds. </Timeline.Item> <Timeline.Item title="The mobile app" time="October 2026" dateTime="2026-10" icon={<Icon name="mobile" variant="solid" />} color="info" /> </Timeline>
Icon Markers
icon puts a picture in the marker. A string is an Icon name, drawn from the icon library
ConfigProvider sets, and anything else renders as it is. One icon marker widens the rail for every
item, so the text still lines up. In a progress timeline, a reached icon marker is tinted with the
progress color, and the current one also has a halo. A completed one and an upcoming one differ by
color alone. In forced colors, a reached icon marker's ring is twice as heavy.
<Timeline titleAs="h3" active={2}> <Timeline.Item title="Order placed" time="12 October" icon="check" /> <Timeline.Item title="Packed" time="13 October" icon="box" /> <Timeline.Item title="Shipped" time="14 October" icon="truck" /> <Timeline.Item title="Delivered" time="Expected 16 October" icon="house" /> </Timeline>
The marker is decoration and hidden from assistive tech, so an icon says nothing to a screen reader. Say what it means in the title.
Colors
color on the timeline colors the markers, and the progress with active. On an item it colors
that item's marker, over the timeline's. Without one, the markers are neutral and progress is
Bulma's link. A color is only seen, so say what it means in the words too.
<Timeline titleAs="h3" color="primary"> <Timeline.Item title="Deployed" time="10:42" color="success"> All checks passed. </Timeline.Item> <Timeline.Item title="Rolled back" time="10:15" color="danger"> The health check failed. </Timeline.Item> <Timeline.Item title="Started" time="10:02" /> </Timeline>
In a colored Notification, the titles and the times take the Notification's own text color, the
way Bulma's titles do there. The markers keep theirs, so on a background in the progress color,
give the timeline a color that stands out from it. The rings and the pending loader are filled
with the page's color, from --bulma-timeline-marker-background, which you can set on the
timeline to match what's behind it.
In a colored Hero, the titles and the times take the Hero's text color too. So do the markers of
a timeline with no color, an upcoming icon included, and their rings, the pending loader and the
icon circles are filled with the Hero's background. A color on the timeline or on an item is
kept, so in a colored Hero set one only if it stands out from the Hero's color. A timeline on a
Box, a Card, a Message or a Modal inside a colored Hero keeps the page's look, since those are
surfaces of their own, and one in a Notification inside the Hero follows the Notification. On any
other surface of its own there, such as a wrapper with a bgColor, set
--bulma-timeline-marker-background and --bulma-timeline-marker-icon-background on the
timeline, through its style or a class loaded after bestax's stylesheet, to that surface's
color.
A Busy Feed
In an activity feed, a heading per row would crowd the page's outline, so titleAs="p" makes the
titles plain lines. Everything is sized in em, so textSize scales the text, the markers, the
rail and the gaps together.
<Card header="Activity"> <Timeline titleAs="p" textSize="7" align="end"> <Timeline.Item title="Sam merged #42" time="2 minutes ago" dateTime="2026-10-16T14:58Z" /> <Timeline.Item title="Ana approved #42" time="1 hour ago" dateTime="2026-10-16T14:00Z" /> <Timeline.Item title="Sam opened #42" time="Yesterday" dateTime="2026-10-15T09:12Z" /> </Timeline> </Card>
In Your App's Language
The words read after each title are props, so they can be in your app's language.
<Timeline titleAs="h3" active={1} pending="En livraison" completedLabel="terminé" upcomingLabel="à venir" pendingLabel="en cours" > <Timeline.Item title="Commande passée" /> <Timeline.Item title="Expédiée" /> </Timeline>
A Timeline That Changes
A timeline announces nothing when it changes. If yours moves along on screen, keep a role="status"
region beside it, in the page from the start, and change its text when the timeline changes.
function example() { const stages = ['Order placed', 'Packed', 'Shipped', 'Delivered']; const [reached, setReached] = useState(1); const done = reached >= stages.length; return ( <Box> <Title as="h2" textSize="5"> Your order </Title> {/* Always in the page, so a change to its text is announced. */} <Paragraph role="status" aria-atomic="true" visibility="sr-only"> {done ? 'Delivered' : `Now: ${stages[reached]}`} </Paragraph> <Timeline titleAs="h3" active={reached}> {stages.map(stage => ( <Timeline.Item key={stage} title={stage} /> ))} </Timeline> <Button onClick={() => setReached(n => Math.min(n + 1, stages.length))} disabled={done} > Next stage </Button> </Box> ); }
Compound (dot-notation) usage
Timeline.Item is the one part, and it's also exported by name as TimelineItem. Its children
render as written, under the title and the time, so an item can hold paragraphs, links or buttons.
It gets its state from the timeline it's in, so it can sit inside a component of your own.
function example() { function Stage({ name, icon, children, }: { name: string; icon: string; children?: React.ReactNode; }) { return ( <Timeline.Item title={name} icon={icon}> {children} </Timeline.Item> ); } return ( <Timeline titleAs="h3" active={1} color="success"> <Stage name="Build" icon="hammer"> <Paragraph>All tests passed.</Paragraph> </Stage> <Stage name="Deploy to staging" icon="server"> <Paragraph> Rolling out.{' '} <Link href="#logs" textTransform="underlined"> See the logs </Link> </Paragraph> </Stage> <Stage name="Deploy to production" icon="globe" /> </Timeline> ); }
Timeline or Steps?
Both draw markers joined by a line, and a Timeline with active can look a lot like
Steps. They're for different things, and they render different markup:
- What it's for: a
Timelineis a record of what happened, such as an order's history or a changelog, or, withactive, the progress of something that moves along on its own and is reported to the user, such as a parcel on its way.Stepsis a journey the user moves through themselves, such as a wizard or a checkout. - What it renders: a
Timelineis an<ol role="list">of events, each title a heading at thetitleAslevel and each time in a<time>when you passdateTime. Its markers are hidden from assistive tech. Withactive, the current item hasaria-current="step"and the others end in the words "completed", "upcoming" or "in progress". Nothing in it is a control.Stepsis a<ul role="list">of steps, each label in a<p>, witharia-current="step"on the current step, a check mark in place of the number on a completed one, and the word "completed" or "upcoming" after each of the others. Aclickablestep puts its marker and label in a<button>that callsonStepClick, andhasNavigationadds Previous and Next buttons, so the user can move back and forth.
If the user is going through it, use Steps. If it tells them what happened, or how far something
has got, use a Timeline.
Accessibility
- A list: it's an
<ol>, since a timeline's order is its meaning, withrole="list". Safari stops treating a list as one once its numbers are hidden, and the role keeps it a list there, so a screen reader says how many events there are and where each one is. - Headings: each title is a heading,
h2unlesstitleAssays otherwise, so screen reader users can move from event to event. Pick the level under the heading the timeline sits beneath: anh3under anh2. In a busy feed,titleAs="p"makes them plain lines. - States in words: the current item has
aria-current="step". A completed item's title ends with "completed", an upcoming one's with "upcoming", and the pending one's with "in progress", in visually hidden text, so its heading reads "Packed completed". Set the words in your app's language withcompletedLabel,upcomingLabelandpendingLabel. Each dot has a shape of its own for its state as well as a color. Among icon markers, the current one has a halo, but a completed one and an upcoming one differ by color, except in forced colors, where a reached one's ring is heavier. - Colors: Timeline takes Bulma's colors. A marker with no
color, in a record or not reached yet, isborder-hover, and an upcoming icon istext-weak. Progress islink, and acolordraws the markers and progress in that color.border-hoverfalls short of the 3:1 against the page that WCAG 1.4.11 asks of a graphic in both schemes, and on a light page so do some of the colors. For more, set--bulma-timeline-neutral-colorto a color such asvar(--bulma-text-weak)on a class you pass throughclassName, with the timeline's class in the selector (.timeline.my-timeline,.bestax-timeline.my-timelineunder the prefixed flavor) so it wins whatever order the stylesheets load in. It wins over a colored Hero's text color too, so leave it off a timeline you put on one. And pick acolorthat reads on your page. - Decoration: the markers are hidden from assistive tech, an
Iconwith anariaLabelincluded, and the line is drawn by CSS. Say what a color or an icon means in the title. - The time: a screen reader mostly reads the text, so the time's words carry the whole date.
dateTimeputs the same moment in a<time datetime>for machines, and for the readers that speak it. - Motion: the pending ring turns, and stands still for users who ask for less motion. Its open shape is the cue either way.
- In a colored Hero: a timeline with no
colordraws its markers in the Hero's text color, as its titles are, an upcoming icon included, so there its states differ by the dots' shapes, an icon marker's tint, and the line, which is drawn in that color up to the current item. Acoloryou set is kept. - Forced colors: every line, dot, ring and halo is a border or an outline, so in Windows high contrast mode they keep their shapes, and the pending ring stays open. A reached icon marker's ring is twice as heavy as an upcoming one's, so the two don't look alike.
- Not interactive and not live: it has no tab stop and no keys, and links or buttons in an item work as they do anywhere. It announces nothing when it changes, so keep a status region beside one that changes on screen, as in A Timeline That Changes.
- A record first: design systems with user research behind them, the UK's
MOJ and
HMRC, use a timeline for a
record and advise against using one as a progress indicator. That's why a record is the default.
activeis for something that moves on its own and is only reported to the user. For a journey the user moves through, where they may go back, useSteps.
Related Components
Steps: For a journey the user moves through, like a wizard or a checkout.Card: A home for an activity feed.Icon: What a stringiconrenders in the marker.Title: For the heading the timeline sits beneath.- Helper Props: Bulma helper props for spacing, color, etc.
Additional Resources
Props
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | — | Additional CSS classes to apply. |
children | React.ReactNode | — | Timeline.Items, in the order they're read: newest first or oldest first for a record, oldest first with active or pending. |
active | number | — | Marks progress. The item at this index, counting the children from 0, is current; the ones before it are completed and the ones after it are upcoming. Leave it out for a record, where nothing is marked. -1 marks every item upcoming, and an index past the last marks them all completed. A fraction counts as the item it has reached, so 2.5 marks the third item current. Each child counts as one item, with Fragments and arrays opened up, so render one item per child. A component of your own around a Timeline.Item still gets its state, but one that renders nothing still counts. |
pending | React.ReactNode | — | What's under way, as a last item after the children: its title, read with pendingLabel. Write it as words that say so ("Out for delivery"). |
align | 'start' | 'end' | 'alternate' | 'start' | start: the rail at the start of the line. end: at the end, with the text against it. alternate: down the middle, the items taking turns and each time across the rail; below Bulma's tablet breakpoint it's start. |
titleAs | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'h2' | What every item's title renders as: a heading at the level under the heading the timeline sits beneath, or p for a busy feed. |
color | 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger' | — | The markers' color, and the color of progress with active. Neutral without it, and Bulma's link for progress. The markers are hidden from assistive tech, so say what a color means in the words too. In a colored Hero, leave it off: the markers then take the Hero's text color, as the titles do, while a color you set is kept even where it doesn't stand out from the Hero's. |
completedLabel | string | 'completed' | Read after a completed item's title, visually hidden. In your app's language. |
upcomingLabel | string | 'upcoming' | Read after an upcoming item's title, visually hidden. In your app's language. |
pendingLabel | string | 'in progress' | Read after the pending item's title, visually hidden. In your app's language. |
textColor | Bulma color | 'inherit' | 'current' | — | Text color helper. |
bgColor | Bulma color | 'inherit' | 'current' | — | Background color helper. |
ref | React.Ref<HTMLOListElement> | — | Ref forwarded to the <ol>. |
... | All standard <ol> attributes and Bulma helper props | — | See Helper Props |
Subcomponents:
Timeline.Item: One event: a marker on the rail, then its title, its time and anything else about it. Outside aTimelineit's a record item with anh2title, though the styles are registered on.timeline, so the rail and the marker need one.
Timeline.Item
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | — | Additional CSS classes to apply. |
title | React.ReactNode | — | What happened, in a line. It renders as the root's titleAs. |
time | React.ReactNode | — | When it happened, as the reader sees it: "14 October 2026", "2 hours ago". Put the whole date in the words, since screen readers mostly read the text. |
dateTime | string | — | The same moment for machines, as HTML's datetime takes it: "2026-10-14", "2026-10-14T08:12", "2026-10". With it, time renders in a <time>. Keep it the same moment as time, since some readers speak it. |
icon | React.ReactNode | — | A picture in the marker. A string is an Icon name, drawn from the icon library ConfigProvider sets, and anything else renders as it is. Without it, the marker is a dot. It's hidden from assistive tech, so what it means goes in the title. A dot draws each state as a shape of its own. Among icon markers the current one has a halo, but a completed one and an upcoming one differ by color, except in forced colors, where a reached one's ring is heavier. |
color | 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger' | — | This item's marker color, over the root's. Say what it means in the words too. |
children | React.ReactNode | — | Anything else about the event, under the title and the time, as written. |
textColor | Bulma color | 'inherit' | 'current' | — | Text color helper. |
bgColor | Bulma color | 'inherit' | 'current' | — | Background color helper. |
ref | React.Ref<HTMLLIElement> | — | Ref forwarded to the <li>. |
... | All standard <li> attributes and Bulma helper props | — | See Helper Props |
CSS & Sass Variables
Timeline registers these variables on its own .timeline element. Override them there (or via className) — a value set on an ancestor is only inherited, and loses to the component-level declaration. See Theme.
| CSS Variable | Sass Variable | Default |
|---|---|---|
--bulma-timeline-gap | $timeline-gap | 1.5em |
--bulma-timeline-content-gap | $timeline-content-gap | 0.25em |
--bulma-timeline-rail-size | $timeline-rail-size | 2em |
--bulma-timeline-rail-size-icon | $timeline-rail-size-icon | 3em |
--bulma-timeline-rail-center | — | calc(var(--bulma-timeline-rail-size) / 2) |
--bulma-timeline-line-width | $timeline-line-width | max(2px, 0.125em) |
--bulma-timeline-line-color | $timeline-line-color | var(--bulma-border) |
--bulma-timeline-dot-size | $timeline-dot-size | 0.75em |
--bulma-timeline-marker-size | $timeline-marker-size | 2em |
--bulma-timeline-pending-size | $timeline-pending-size | 1em |
--bulma-timeline-neutral-color | $timeline-neutral-color | var(--bulma-border-hover) |
--bulma-timeline-marker-color | — | var(--bulma-timeline-neutral-color) |
--bulma-timeline-active-color | $timeline-active-color | hsl(var(--bulma-link-h), var(--bulma-link-s), var(--bulma-link-l)) |
--bulma-timeline-marker-background | $timeline-marker-background | var(--bulma-scheme-main) |
--bulma-timeline-marker-icon-background | $timeline-marker-icon-background | var(--bulma-background) |
--bulma-timeline-marker-icon-color | $timeline-marker-icon-color | var(--bulma-text-weak) |
--bulma-timeline-halo-offset | $timeline-halo-offset | 0.1875em |
--bulma-timeline-pending-duration | $timeline-pending-duration | 1s |
--bulma-timeline-title-color | $timeline-title-color | var(--bulma-text-strong) |
--bulma-timeline-title-weight | $timeline-title-weight | var(--bulma-weight-semibold) |
--bulma-timeline-time-color | $timeline-time-color | var(--bulma-text-weak) |
--bulma-timeline-time-size | $timeline-time-size | 0.875em |