Component packs › Snippet › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
dark | boolean | ||
autoplay | boolean | ||
data | number[][] | 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 |
destroy(): voidimport BestTime from './BestTime';
<BestTime />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: SEO and social preview components.