Component packs › Snippet › Best Time

Best Time

Switch to your time zone and the whole week of activity slides across, wrapping past midnight, with the best hours marked.

Best Time is a chart from Snippet, a component pack with 7 preview components: Seven preview components that show how a page or post will look before it goes out, measured, not guessed. Price: $2 for the whole pack.

Built with: time-zone shift, ranked hours, roving grid focus.

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.

Best Time props

PropTypeDefaultDescription
darkboolean
autoplayboolean
datanumber[][]7 × 24 values in the audience's time, Monday first.
audience{ city: string; utc: number }
you{ city: string; utc: number }
onPick(v: { day: number; hour: number; rank: number }) => void

Methods on the ref

Use it in React

import BestTime from './BestTime';

<BestTime />

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

More in Snippet

Good for: SEO and social preview components.