Component packs › Almanac › Repeat Rule

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.

Repeat Rule props

PropTypeDefaultDescription
everynumber
unit'day' | 'week' | 'month'
daysnumber[]Weekdays for weekly rules, 0 = Monday.
countnumber
onChange(rule: RepeatRuleValue) => void
theme'dark' | 'light'
autoplaybooleanShowcase mode: edits the rule until touched.

Methods on the ref

Use it in React

import RepeatRule from './RepeatRule';

<RepeatRule />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Almanac

Good for: Calendar and scheduling.