

Every state


default


hover


focus


lunch-break


closing-soon


opens-later


closed


narrow
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| title | string | "Opening hours" | Title text. |
| text | string | null | "Service desk, Westerhaven town hall" | One line under the title: the place or the desk. Null or left out: no line. |
| week | ContactCardHoursRange[][] | [lunch, lunch, lunch, [{ open: "08:30", close: "12:30" }, { open: "13:30", close: "20:00" }], [{ open: "08:30", close… | Seven days, Monday first, each a list of opening ranges; [] is a closed day and two ranges make a lunch break. |
| timeZone | string | "Europe/Amsterdam" | The business's IANA time zone: open or closed is worked out there, wherever the visitor is. |
| now | string | null | null | The moment to show, as an ISO string. Null or left out: the visitor's clock, read after hydration and every minute (the server draws the week without a status). |
| soonMinutes | number | 30 | Minutes before closing that count as closing soon. |
| note | string | null | "Times in Amsterdam time. Closed on public holidays." | A line under the table (time zone, public holidays). Null or left out: no line. |
| link | { label: string; href: string } | null | { label: "Make an appointment", href: "/appointments" } | A link under the table (holiday hours, an appointment). Null or left out: no link. |
| labels | ContactCardHoursLabels | { open: "Open now", soon: "Closing soon", break: "Lunch break", closed: "Closed", closesAt: "closes at {time}", backA… | Every word the card says around the times. |
| locale | string | "en-GB" | Locale for weekday names and times. |
| className | string | – | Extra classes on the outer element. |


