# FreeBusy

> A "find a time" grid: one row per person over one day's hours, their busy blocks and the hours outside their working day drawn on a track, and the suggested slots everyone can make as bands across every row.

```ts
import { FreeBusy } from "@sdxc/ui/schedule";
```

Renders the grid: a sticky column of names beside a track per person, under an axis of hours
and a row of slot labels. Every block is placed as a percentage of the visible range, so it
lines up at any width; each name carries a hidden summary of that person's busy times.

## Examples

```tsx
<FreeBusy label="Availability" start={480} end={1140} hours={hours} labels={labels}
	people={[{ id: "ana", name: "Ana", busy: [{ start: 540, end: 600 }] }]} />
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `label` | `string` | The grid's accessible name, such as "Availability on November 18". |
| `start` | `number` | The first visible minute from midnight, such as 480. |
| `end` | `number` | The last visible minute from midnight, such as 1140. |
| `step?` | `number` | Minutes per column; the track's faint lines fall on it. @default 30 |
| `hours` | `Hour[]` | The axis labels; each also draws an hour line down the tracks. |
| `people` | `Person[]` |  |
| `slots?` | `Slot[]` |  |
| `now?` | `number` | The present minute, drawn as a thin line. |
| `formatTime?` | `(minute: number) => string` | Writes the minutes in each row's summary. @default H:MM on a 24-hour clock |
| `labels` | `Labels` |  |

Also accepts everything in `Omit<TagProps<"div">, "children">`.

