Skip to main content
Clever Ops

Practitioner Directory

Clinician cards with real credential lines, special-interest tags, and a next-available chip, the calm, plain-language way patients choose who to see.

Preview & code

Loading Practitioner Directory preview

Installation

pnpm dlx shadcn@latest add @cleverui/practitioner-directory

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

Usage

tsx
import { PractitionerDirectory } from '@/components/blocks/practitioner-directory'
Exampletsx
'use client'

import { PractitionerDirectory } from '@/components/blocks/practitioner-directory'

export default function PractitionerDirectoryDemo() {
  return (
    <PractitionerDirectory
      heading="Our practitioners"
      intro="Every doctor here is accepting new patients. Choose someone whose interests match what you need, or book with the first available."
      practitioners={[
        {
          name: 'Dr Amara Chen',
          credentials: ['MBBS', 'FRACGP'],
          role: 'General practitioner',
          interests: ["Women's health", 'Mental health', 'Preventive care'],
          nextAvailable: 'Tomorrow 9:40 am',
          bookHref: '#book-chen',
        },
        {
          name: 'Dr James Okonkwo',
          credentials: ['MBBS', 'FRACGP', 'DCH'],
          role: 'General practitioner',
          interests: ["Children's health", 'Asthma', 'Travel medicine'],
          nextAvailable: 'Thu 11:20 am',
          bookHref: '#book-okonkwo',
        },
        {
          name: 'Dr Priya Nair',
          credentials: ['MBBS', 'MD', 'FRACGP'],
          role: 'General practitioner',
          interests: ['Skin checks', 'Diabetes', 'Aged care'],
          nextAvailable: 'Today 4:15 pm',
          bookHref: '#book-nair',
        },
        {
          name: 'Sam Rivera',
          credentials: ['BPhysio'],
          role: 'Physiotherapist',
          interests: ['Sports injuries', 'Back pain', 'Post-op rehab'],
          nextAvailable: 'Wed 2:00 pm',
          bookHref: '#book-rivera',
        },
      ]}
      bookLabel="Book appointment"
    />
  )
}

API reference

PractitionerDirectory accepts the following props.

PropTypeDefaultDescription
headingstring'Our practitioners'
introstringone reassuring plain-language sentence under the heading
practitioners*Practitioner[]
bookLabelstring'Book appointment'
credentialLegendRecord<string, string>extends the built-in post-nominal legend used for sr-only expansions

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

Referenced types

Typestsx
export interface Practitioner {
  name: string
  /** post-nominals like MBBS, FRACGP */
  credentials?: string[]
  role: string
  interests?: string[]
  /** preformatted next slot, e.g. 'Tomorrow 9:40 am', never derived from Date */
  nextAvailable?: string
  bookHref?: string
}

Frequently asked questions

How do I install the Practitioner Directory component?

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

Practitioner Directory 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 Practitioner Directory 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