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

ComposerMode

Agent chat · src/components/ComposerMode/ComposerMode.tsx

Plan or Run, in the composer bar beside the model.

Plan asks what it needs and writes a plan that runs only when you say so; Run starts at once. It is a per-message choice, so it sits where the message is sent rather than in a settings page somebody has to remember to visit before typing.

Each option carries its label as its accessible name and its hint as a title, so the compact, icons-only form still says Plan and Run to a screen reader.

Import

import { ComposerMode } 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
value string
defaultValue string
onChange (value: string, option: ComposerModeOption) => void
options ComposerModeOption[]
compact boolean Icons only, labels kept for screen readers. Automatic below 560px.
label string
className string