Skip to main content
Clever Ops

Hours & Status Strip

Opening hours as a clean mono table with a live open-now lamp, today's row highlighted, next opening surfaced when closed. Print-schedule clarity, zero deps beyond motion.

Preview & code

Loading Hours & Status Strip preview

Installation

pnpm dlx shadcn@latest add @cleverui/restaurant-hours

Requires the @cleverui registry in your components.json, a one-off, two-line setup.

Usage

tsx
import { RestaurantHours } from '@/components/ui/restaurant-hours'
Exampletsx
import { RestaurantHours } from '@/components/ui/restaurant-hours'

export default function RestaurantHoursDemo() {
  return (
    <RestaurantHours
      heading="Hours"
      // Fixed reference so SSR/screenshots stay deterministic
      now="2026-07-10T19:30:00"
      note="Kitchen last call 30 minutes before close"
      hours={[
        { day: 'Monday', open: '5:00 PM', close: '10:00 PM' },
        { day: 'Tuesday', open: '5:00 PM', close: '10:00 PM' },
        { day: 'Wednesday', open: '5:00 PM', close: '10:00 PM' },
        { day: 'Thursday', open: '5:00 PM', close: '11:00 PM' },
        { day: 'Friday', open: '5:00 PM', close: '11:30 PM' },
        { day: 'Saturday', open: '4:00 PM', close: '11:30 PM' },
        { day: 'Sunday' },
      ]}
    />
  )
}

API reference

RestaurantHours accepts the following props.

PropTypeDefaultDescription
headingstring'Hours'
hours*HourRow[]7 rows; omit open/close for closed days
nowDate | stringReference time for the open lamp. Required for deterministic SSR demos; live clients omit it and status resolves post-mount.
notestring

…plus everything from React.HTMLAttributes<HTMLElement>: className, event handlers, aria attributes and the rest pass straight through.

Referenced types

Typestsx
export interface HourRow {
  day: string
  open?: string
  close?: string
}

Frequently asked questions

How do I install the Hours & Status Strip component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/restaurant-hours`. The shadcn CLI copies the source into your project, you own the code from that point. You can also copy the source directly from this page.

What dependencies does Hours & Status Strip require?

Hours & Status Strip uses motion on top of React and Tailwind CSS. You don't need to install it manually, the shadcn CLI resolves and installs npm dependencies automatically when you add the component.

Can I theme Hours & Status Strip to match my brand?

Yes. The component is styled entirely with Tailwind utilities over standard design tokens (primary, background, muted, border), so it inherits your existing shadcn/ui theme automatically. Change your CSS variables and the component follows, no source edits needed for palette, radius, or fonts.

Want this built for you?

CleverUI is built by the Clever Ops web team. If you'd rather ship a hand-coded, fast, custom website than assemble one, we build them for Australian businesses every week.

Explore web development services