Skip to main content

ProviderDayColumns

ComplexScheduling<co-provider-day-columns>

ProviderDayColumns is the multi-provider day view: one column per provider, time rows, chips, blocks and free slots.

import { ProviderDayColumns } from 'health-components';

Examples​

Open Day​

Storybook

Usage​

<ProviderDayColumns times={TIMES} providers={providersWithAppts} />

When to use​

  • Front desk view of everyone's day.

When not to use​

  • One provider's week: Calendar.

Variants and states​

VariantWhat it is
appointmentsChips by time.
blocksLunch, admin, hospital rounds.
freeHover to book.

Accessibility​

  • Grid; free cells are links "+ Book 9:40 AM".

Do and don't​

  • Do: Keep column order stable.
  • Don't: More than 8 columns without scrolling.

Props​

PropTypeDefaultDescription
times *string[]—Row times, e.g. ['8:00 AM', '8:20 AM']. Required
providers *ProviderColumn[]—One column per provider. Required
onBook(provider: string, time: string) => voidnoneCalled when a free slot is chosen
labelstring'Schedule by provider'Accessible name of the view

Also accepts native attributes, including defaultChecked, defaultValue, autoFocus, plus className and event handlers on the root element.

Angular, Vue and HTML​

Register the elements once (Angular guide), then use <co-provider-day-columns>. Attributes take strings; arrays and objects are set as properties (Angular [prop], Vue :prop) or as JSON attributes. Callbacks are DOM events with the value in event.detail.

Angular template
<co-provider-day-columns label="…" default-checked [times]="times" (co-book)="onBook($event.detail)"></co-provider-day-columns>
KindNameDescription
property / JSON attributetimesRow times, e.g. ['8:00 AM', '8:20 AM']. Required
property / JSON attributeprovidersOne column per provider. Required
attributelabelAccessible name of the view; default 'Schedule by provider'
attributedefault-checked / defaultChecked
property / JSON attributedefault-value / defaultValue
attributeauto-focus / autoFocus
eventco-bookCalled when a free slot is chosen; default none (React: onBook)