## Cron Builder (S—230)

Build a cron schedule from plain choices, see the expression and a human sentence, and preview the next five runs.

- URL: https://sundaeui.dev/components/cron-builder
- Category: Forms & inputs · Art direction: Refined
- Access: Free (no account needed)
- Stack: React 18+, TypeScript, plain CSS; dependencies: none
- Install: `npx shadcn@latest add https://sundaeui.dev/r/cron-builder.json`
- Tags: expression, schedule, automation, cron, developer, jobs

Pick a frequency (every N minutes, hourly, daily, weekly, monthly) and the relevant fields; the five-field expression updates and can be copied.
Or paste an expression to read it back. The next five run times are computed locally so you can sanity-check the schedule.

### Usage

```tsx
import { CronBuilder } from '@/components/sundae/cron-builder'

<CronBuilder />
```

### Props

- `value` (`string`, default `'0 9 * * 1-5'`): Cron expression.
- `onValueChange` (`(cron: string) => void`): Called on change.
- `fill` (`'dark' | 'light'`, default `'dark'`): Surface: dark or light.

### When to use

- Job schedulers, report emails, backups, CI.

### When not to use

- End-user reminders: use a recurrence picker.

### Accessibility

- Every choice is a native select or toggle with a label.
- The sentence and next runs are a live region.
- Reduced motion removes the movement and keeps every state change.
