Skip to main content
Clever Ops

Open Home Schedule

A week of inspections set like a printed schedule, days as ruled groups, each open home with its address, a tabular time range, and an add-to-calendar affordance via callback.

Preview & code

Loading Open Home Schedule preview

Installation

pnpm dlx shadcn@latest add @cleverui/open-home-schedule

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

Usage

tsx
import { OpenHomeSchedule } from '@/components/blocks/open-home-schedule'
Exampletsx
'use client'

import { OpenHomeSchedule } from '@/components/blocks/open-home-schedule'

export default function OpenHomeScheduleDemo() {
  return (
    <OpenHomeSchedule
      eyebrow="Whitmore & Co."
      heading="Open homes this week"
      note="Private inspections by appointment, call Claire on 0412 880 314."
      onAddToCalendar={(session) => {
        // Demo only: real sites wire this to .ics or calendar deep-links
        console.info('Add to calendar', session)
      }}
      days={[
        {
          day: 'Saturday',
          date: '18 Jul',
          sessions: [
            {
              address: '14 Banksia Avenue',
              suburb: 'Hawthorn East',
              start: '10:00',
              end: '10:30',
            },
            {
              address: '7/22 Riversdale Road',
              suburb: 'Camberwell',
              start: '11:15',
              end: '11:45',
              note: 'Agent on site',
            },
            {
              address: '41 Berkeley Street',
              suburb: 'Hawthorn',
              start: '12:30',
              end: '13:00',
            },
          ],
        },
        {
          day: 'Sunday',
          date: '19 Jul',
          sessions: [
            {
              address: '9 Marshall Avenue',
              suburb: 'Kew',
              start: '10:00',
              end: '10:30',
            },
            {
              address: '18 Auburn Grove',
              suburb: 'Hawthorn East',
              start: '11:00',
              end: '11:30',
              note: 'Auction guide available',
            },
            {
              address: '3/105 Power Street',
              suburb: 'Hawthorn',
              start: '14:00',
              end: '14:30',
            },
          ],
        },
        {
          day: 'Wednesday',
          date: '22 Jul',
          sessions: [
            {
              address: '56 Burke Road',
              suburb: 'Camberwell',
              start: '17:30',
              end: '18:00',
              note: 'After-work inspection',
            },
          ],
        },
      ]}
    />
  )
}

API reference

OpenHomeSchedule accepts the following props.

PropTypeDefaultDescription
headingstring'Open homes this week'
eyebrowstring
days*OpenHomeDay[]
onAddToCalendar(session: { day: string date: string address: string start: string end: string }) => voidVisual affordance only, callback owns .ics or deep-link behaviour. Calendar buttons are hidden when omitted.
notestringfootnote, e.g. Private inspections by appointment

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

Referenced types

Typestsx
export interface OpenHomeDay {
  /** preformatted weekday, e.g. Saturday */
  day: string
  /** preformatted date, e.g. 18 Jul, never derived from Date in render */
  date: string
  sessions: OpenHomeSession[]
}

export interface OpenHomeSession {
  address: string
  suburb?: string
  start: string
  end: string
  note?: string
}

Frequently asked questions

How do I install the Open Home Schedule component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/open-home-schedule`. 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 Open Home Schedule require?

Open Home Schedule uses motion and lucide-react on top of React and Tailwind CSS. You don't need to install them manually, the shadcn CLI resolves and installs npm dependencies automatically when you add the component.

Can I theme Open Home Schedule 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