Fluxo UIFluxo UIv0.6.2

Resource Timeline

A day-based scheduler with one row per resource. Plan work by moving and resizing bars, reassign it by dropping it on another row, and show a load row under each resource.

Basic Usage

Pass resources, events and the date range. Overlapping events are placed in separate lanes.

Read-only timeline

Overlapping bars of a row are placed in separate lanes.

Nov 2026
Dec 2026
S21
S22
M23
T24
W25
T26
F27
S28
S29
M30
T1
W2
T3
F4
S5
S6
M7
T8
W9
T10
F11
S12
S13
M14
T15
W16
T17
F18
S19
S20
M21
Alice Martin
Checkout page
Design review fixes
Bob Chen
Payments API
Carla Diaz
Regression tests
Dev Patel
Search indexing
import { ResourceTimeline } from 'fluxo-ui';

<ResourceTimeline
  resources={[{ id: 'alice', name: 'Alice Martin' }, { id: 'bob', name: 'Bob Chen' }]}
  events={[
    { id: 'e1', resourceId: 'alice', start: '2025-03-03', end: '2025-03-07', title: 'Checkout page' },
    { id: 'e2', resourceId: 'alice', start: '2025-03-06', end: '2025-03-11', title: 'Design review fixes' },
  ]}
  startDate="2025-03-01"
  endDate="2025-03-31"
  readOnly
/>

Plan and Reassign

Handle onEventChange to move, resize and reassign bars, onExternalDrop to accept new work, and use dayCellTemplate for a per-day row.

Plan and reassign

Move, resize, reassign, drop new work and show a load row under each person.

Onboarding emails
Audit log export
Dark mode polish
Nov 2026
Dec 2026
S21
S22
M23
T24
W25
T26
F27
S28
S29
M30
T1
W2
T3
F4
S5
S6
M7
T8
W9
T10
F11
S12
S13
M14
T15
W16
T17
F18
S19
S20
M21
Alice Martin
Checkout page
Design review fixes
1
1
1
2
2
1
1
1
1
Bob Chen
Payments API
1
1
1
1
1
1
1
1
1
1
Carla Diaz
Regression tests
1
1
1
Dev Patel
Search indexing
1
1
1
1
1
1
Drag a bar along the row, to another person, or drop a task from the list.
const [events, setEvents] = useState(initialEvents);

<ResourceTimeline
  resources={resources}
  events={events}
  startDate={start}
  endDate={end}
  isNonWorkingDay={(date, resourceId) => date.getDay() === 0 || date.getDay() === 6 || isLeave(date, resourceId)}
  dayCellTemplate={(resource, date) => <LoadCell resource={resource} date={date} />}
  onEventChange={({ item, start, end, resourceId }) =>
    setEvents((list) => list.map((e) => (e.id === item.id ? { ...e, start, end, resourceId } : e)))
  }
  onExternalDrop={({ resourceId, date, dataTransfer }) => addTask(dataTransfer.getData('text/plain'), resourceId, date)}
/>

Import

import { ResourceTimeline } from 'fluxo-ui';
import type {
  ResourceTimelineProps,
  ResourceTimelineResource,
  ResourceTimelineEvent,
  ResourceTimelineMarker,
  ResourceTimelineEventChangeEvent,
  ResourceTimelineEventClickEvent,
  ResourceTimelineDropEvent,
} from 'fluxo-ui';

ResourceTimeline Props

resourcesreq
ResourceTimelineResource[]

Rows of the timeline, for example people or rooms

eventsreq
ResourceTimelineEvent[]

Bars placed on the rows by resourceId, start and end. Overlapping bars of a row are placed in separate lanes

startDatereq
Date | string

First day shown on the timeline

endDatereq
Date | string

Last day shown on the timeline

dayWidth
number"32"

Width of one day in pixels

laneHeight
number"28"

Height of one lane of bars in pixels

resourceWidth
number | string"200"

Width of the sticky resource column

height
number | string"480"

Height of the component. The body scrolls inside it

markers
ResourceTimelineMarker[]"[]"

Vertical dashed lines on given dates, for example milestones

readOnly
boolean"false"

Disables moving, resizing and dropping

allowResourceChange
boolean"true"

Allows dragging a bar to another row (and moving it with the up / down arrow keys)

showToday
boolean"true"

Highlights today in the header and draws a line on every row

isNonWorkingDay
(date: Date, resourceId: string) => boolean

Shades the days a resource does not work, per row

resourceTemplate
(resource) => ReactNode

Custom content of the resource column

eventTemplate
(item, width) => ReactNode

Custom content of a bar

dayCellTemplate
(resource, date) => ReactNode

Renders a row of day cells under the bars of each resource, for example the daily load

dayCellHeight
number"24"

Height of the day cell row

emptyMessage
ReactNode"'No resources'"

Shown when there are no resources

className
string

Additional CSS class of the root element

ariaLabel
string"'Resource timeline'"

Accessible name of the grid

onEventChange
(event: ResourceTimelineEventChangeEvent) => void

Called after a bar is moved, resized or moved to another row, with the new start, end and resource

onEventClick
(event: ResourceTimelineEventClickEvent) => void

Called when a bar is clicked without being dragged

onEventDoubleClick
(event: ResourceTimelineEventClickEvent) => void

Called on double click or Enter on a bar

onExternalDrop
(event: ResourceTimelineDropEvent) => void

Enables dropping items dragged with the HTML drag and drop API onto a row. Receives the row, the day and the dataTransfer

ResourceTimelineEvent Properties

idreq
string

Unique id of the bar

resourceIdreq
string

Row the bar belongs to

startreq
Date | string

First day of the bar

endreq
Date | string

Last day of the bar (inclusive)

titlereq
string

Label and tooltip of the bar

color
string

Background colour

textColor
string

Text colour

draggable
boolean"true"

Set to false to prevent moving the bar

resizable
boolean"true"

Set to false to prevent resizing the bar

data
Record<string, unknown>

Any data used by the templates

Features

Rows and Lanes

One row per resource. Bars that overlap in time are stacked in lanes so none is hidden.

Move, Resize, Reassign

Drag bars along time, resize either end, or drop them on another row to change the resource.

External Drop

Accepts items dragged from outside, such as an unscheduled list, onto a row and day.

Day Cells

Optional row of day cells under each resource, for load, availability or totals.

Keyboard Operable

Arrow keys move bars, Alt and Ctrl with arrows resize them, up and down arrows change the row.