Component packs › Latch › Ribbon Range
The range is a ribbon that follows the pointer day by day on a spring, folds round the end of each week, and carries a nights counter on its end.
Ribbon Range is a date range from Latch, a component pack with 8 components: Form and sign-in components that work like little mechanisms. Price: $2 for the whole pack.
Built with: spring ribbon, week folds, grid keys.
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 |
|---|---|---|---|
month | Date | this month | Month shown first (any date inside it). Default: this month. |
start | Date | Starting range. | |
end | Date | ||
weekStart | 0 | 1 | Week starts on Monday (default) or Sunday. | |
unit | 'nights' | 'days' | 'nights' | Word for the counter. Default 'nights'. |
onChange | (start: Date | null, end: Date | null) => void | ||
theme | 'dark' | 'light' | ||
autoplay | boolean | Showcase mode: stretches a few ranges until touched. |
readonly start: Date | nullreadonly end: Date | nulldestroy(): voidimport RibbonRange from './RibbonRange';
<RibbonRange />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Form and sign-in components.