Opening hours as a week

Seven columns with a rule above. Today gets a thick rule and closed days are dimmed.

UniversalUsed in production
Install
npx finepieces add opening-hours
Or with the shadcn CLI ›
npx shadcn@latest add https://finepieces.net/r/opening-hours.json

import { OpeningHours } from "@/components/fine-pieces/opening-hours";

export default function Example() {
  return (
    <OpeningHours
      name="Broodhuis Vos"
      address="Grote Houtstraat 12, Haarlem"
      image={"/images/bakkerij-3.webp"}
      week={[
        { day: "mon", hours: "7–18" },
        { day: "tue", hours: "7–18" },
        { day: "wed", hours: "7–18" },
        { day: "thu", hours: "7–20" },
        { day: "fri", hours: "7–18" },
        { day: "sat", hours: "8–17" },
        { day: "sun", hours: null },
      ]}
    />
  );
}