Skip to main content
Clever Ops

Patient Info Bar

The practical strip patients actually need, bulk-billing badge, accessibility notes, parking, and the after-hours line, set with the same care most sites reserve for heroes.

Preview & code

Loading Patient Info Bar preview

Installation

pnpm dlx shadcn@latest add @cleverui/patient-info-bar

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

Usage

tsx
import { PatientInfoBar } from '@/components/blocks/patient-info-bar'
Exampletsx
'use client'

import { PatientInfoBar } from '@/components/blocks/patient-info-bar'

export default function PatientInfoBarDemo() {
  return (
    <PatientInfoBar
      badge="Bulk billing available"
      items={[
        {
          icon: 'billing',
          label: 'Billing',
          detail:
            'Bulk billed for concession card holders and children under 16. Private fees listed under Services.',
        },
        {
          icon: 'accessibility',
          label: 'Wheelchair access',
          detail:
            'Step-free entry via Gordon Street, lift to Level 1, accessible bathroom on every floor.',
        },
        {
          icon: 'parking',
          label: 'Parking',
          detail:
            'Two-hour street parking on Gordon Street. Multi-storey car park entrance on Vale Lane.',
        },
        {
          icon: 'clock',
          label: 'Opening hours',
          detail: 'Mon–Fri 8:00 am – 6:00 pm · Sat 9:00 am – 1:00 pm · Closed Sundays',
        },
      ]}
      afterHours={{
        note: 'For urgent care after hours, call the Home Doctor service on',
        phone: '13 74 25',
      }}
    />
  )
}

API reference

PatientInfoBar accepts the following props.

PropTypeDefaultDescription
badgestring'Bulk billing available'The strip's single accent chip. Defaults to bulk-billing notice; pass an empty string to hide the accent entirely.
items*PatientInfoItem[]
afterHours{ note: string; phone?: string }after-hours note with optional tel: phone link

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

Referenced types

Typestsx
export interface PatientInfoItem {
  icon?: PatientInfoIconKey
  label: string
  detail: string
}

export type PatientInfoIconKey = 'billing' | 'accessibility' | 'parking' | 'clock' | 'info'

Frequently asked questions

How do I install the Patient Info Bar component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/patient-info-bar`. 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 Patient Info Bar require?

Patient Info Bar 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 Patient Info Bar 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