Radarist project

Radarist / Design system

Documentation v0.1 · Product in progress

Design system contents

Components

Preference and schedule switches

Represent a persistent on/off choice with a named switch and an explicit checked state.

On this page

Purpose and usage

Represent a persistent on/off choice with a named switch and an explicit checked state.

Use for a preference or schedule enabled state; label the outcome rather than the control technology.

Anatomy

Anatomy
PartContract
Preference rowLabel and descriptive copy with trailing switch.
Switch trackVisual on/off track and thumb.
Schedule contextCompact control named for its schedule.

Variants and configuration

Variants and configuration
ConfigurationBehavior
SettingsTogglechecked, label, description, onChange.
ScheduleToggleenabled, scheduleName, onChange, optional disabled.

State coverage

State coverage
StateImplemented behavior
Onaria-checked true; accent track.
Offaria-checked false; muted track.
Disabled scheduleNative disabled prevents changing an unavailable schedule.

Interaction and responsive behavior

  • Keep the value controlled by the containing form/workspace.
  • Choose immediate-save or explicit-save behavior at the workflow level and document it.
  • Do not use a switch for a one-time command such as creating a project.

Accessibility contract

  • role=switch and aria-checked express the state.
  • A visible label identifies the preference; the schedule switch uses its schedule name.
  • Test Space activation and disabled semantics.

Known gaps and readiness

Preference save is local UI feedback in the audited source; schedule changes call a planning action. These are different persistence contracts.

Composition example

<SettingsToggle checked={dailyReminder}
  label="Daily planning reminder"
  description="A prompt to review your agenda."
  onChange={setDailyReminder} />

Source references

Source references
FileResponsibility
app/components/settings-form-controls.tsxSettingsToggle
app/components/schedule-toggle.tsxScheduleToggle

Examples from the app

Actual Radarist components with fictional data. Captured at 2× resolution or higher. Select an image to inspect it full size.

Settings Toggle · Component detail · Light · Desktop · 1864 × 464 px
Schedule Toggle · Component detail · Light · Desktop · 1864 × 202 px

Source audit: 2026-10-07 · Revision 0103e2549959 · Documentation v0.1