Skip to main content
Clever Ops

Quiet Hours

Sensory-friendly quiet hours, weekly low-stimulation session times beside a gentle list of what changes, from dimmed lights to no dryers. A React and Tailwind panel for salons.

Preview & code

Loading Quiet Hours preview

Installation

pnpm dlx shadcn@latest add @cleverui/quiet-hours-panel

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

Usage

tsx
import { QuietHoursPanel } from '@/components/blocks/quiet-hours-panel'
Exampletsx
import { QuietHoursPanel } from '@/components/blocks/quiet-hours-panel'

export default function QuietHoursPanelDemo() {
  return (
    <QuietHoursPanel
      eyebrow="Quiet hours"
      heading="The salon, softened"
      intro="Some guests prefer the salon at its quietest, we hold time each week for exactly that."
      adjustments={[
        'Lights dimmed and music off',
        'No dryers running nearby',
        'One guest in the studio at a time',
        'Conversation only if you feel like it',
      ]}
      sessions={[
        { day: 'Tuesday', time: '9:00 – 11:00 am' },
        { day: 'Thursday', time: '9:00 – 11:00 am' },
        { day: 'Saturday', time: '8:00 – 10:00 am' },
      ]}
      bookingNote="Mention quiet hours when you book, or add a note online, nothing about your visit needs explaining."
    />
  )
}

API reference

QuietHoursPanel accepts the following props.

PropTypeDefaultDescription
eyebrowstring'Quiet hours'
headingstring'The salon, softened'
introstring'Some guests prefer the salon at its quietest, we hold time each week for exactly that.'one gentle sentence carrying the block's single accent keyline
adjustments*string[]what changes during quiet hours
sessions*QuietHoursSession[]held weekly times, time is preformatted; never computed
bookingNotestring'Mention quiet hours when you book, or add a note online, nothing about your visit needs explaining.'italic serif reassurance beneath the panel

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

Referenced types

Typestsx
export interface QuietHoursSession {
  day: string
  /** preformatted range, e.g. '9:00 - 11:00 am' */
  time: string
}

Frequently asked questions

How do I install the Quiet Hours component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/quiet-hours-panel`. 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 Quiet Hours require?

Quiet Hours 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 Quiet Hours 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