@redrob-labs/ui v1.0.2 · Redrob Group Design System 2026

Schedule

Agent harness · src/components/Schedule/Schedule.tsx

One scheduled task: what it is, when it runs next, and how the last run went.

A paused schedule stays visible and says "Paused". Hiding it would leave a task nobody remembers to turn back on, and the last run's state is what tells somebody whether the pause was deliberate.

The switch's label names the task, so a page of schedules does not present a column of switches called "on".

Import

import { Schedule } from '@redrob-labs/ui';

Rendered

The design system's own preview case, run against this package's build. The parity gate compares this rendering to the reference bundle's.

Props

PropTypeNotes
name React.ReactNode
cadence React.ReactNode How often, in words: "Every weekday".
nextRun React.ReactNode
lastRun ScheduleLastRun
enabled boolean false reads as Paused rather than hiding the row.
switchLabel string
className string
onToggle (event: React.ChangeEvent<HTMLInputElement>) => void Omit it and the schedule cannot be paused from here.

Exported types

ScheduleLastRun