Component packs › Latch › Ribbon Range

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.

Ribbon Range props

PropTypeDefaultDescription
monthDatethis monthMonth shown first (any date inside it). Default: this month.
startDateStarting range.
endDate
weekStart0 | 1Week 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'
autoplaybooleanShowcase mode: stretches a few ranges until touched.

Methods on the ref

Use it in React

import RibbonRange from './RibbonRange';

<RibbonRange />

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

More in Latch

Good for: Form and sign-in components.