Component packs › Almanac › Repeat Rule
A recurring event written as a sentence of tappable words; the next dates fly to their places on a strip whenever the rule changes.
Repeat Rule is a recurrence from Almanac, a component pack with 8 components: Calendar and scheduling components with a feel for time. Price: $2 for the whole pack.
Built with: sentence builder, RRULE out, flying dates.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
every | number | ||
unit | 'day' | 'week' | 'month' | ||
days | number[] | Weekdays for weekly rules, 0 = Monday. | |
count | number | ||
onChange | (rule: RepeatRuleValue) => void | ||
theme | 'dark' | 'light' | ||
autoplay | boolean | Showcase mode: edits the rule until touched. |
readonly value: RepeatRuleValuedestroy(): voidimport RepeatRule from './RepeatRule';
<RepeatRule />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Calendar and scheduling.