# Viewing List

> Viewings of a property in date order: who comes, how many, the state (requested, confirmed, done, cancelled, no-show) and the feedback afterwards as stars and a quote.

Component · CRM · Halo kit · [Live page](https://ui.twentyfirst.media/halo/components/ViewingList/)

Viewings of a property in date order: who comes, how many, the state (requested, confirmed,
done, cancelled, no-show) and the feedback afterwards as stars and a quote.

- `onConfirm(id)` shows "Confirm" on requested viewings; `onFeedback(id)` shows "Add feedback" on
  done viewings that have none yet.

## Example

```tsx
import { Panel, ViewingList } from "@twentyfirstmedia/halo";
import { VIEWINGS } from "./_industry";

export default function Preview() {
  return (
    <Panel title="Viewings" subtitle="Isestraße 61, 2nd floor">
      <ViewingList viewings={VIEWINGS} onConfirm={() => {}} onFeedback={() => {}} />
    </Panel>
  );
}
```

## Props

### ViewingList

| Prop | Type | Notes |
| --- | --- | --- |
| `viewings` | `Viewing[]` | Required |
| `onConfirm?` | `(id: string) => void` | Shows "Confirm" on requested viewings. |
| `onFeedback?` | `(id: string) => void` | Shows "Add feedback" on done viewings without feedback. |
| `label?` | `string` | Accessible name (default "Viewings"). |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |

### Panel

| Prop | Type | Notes |
| --- | --- | --- |
| `side?` | `boolean` |  |
| `title?` | `string` |  |
| `subtitle?` | `string` |  |
| `action?` | `ReactNode` |  |
| `children?` | `ReactNode` |  |
| `surface?` | `Surface` | `"glass"`: translucent glass over what is behind (maps, 3D, video, photos); `"solid"` opts out inside a glass `UIProvider`. |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |
