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

Schedule

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

@deprecated Use ScheduleRow. Kept for 1.x.

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

No rendering: the delivery ships no preview case for this one

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