# Canvas preview

A canvas named in a message, in small: its frames laid out as they stand, its name and its facts, one link to it.

Live variants: https://design.arcadia.is/components/canvas-preview

```tsx
import { CanvasPreview } from "@arcadia/ui";
```

```tsx
import { CanvasPreview } from "@arcadia/ui";

<CanvasPreview name="Crew canvas, reorganized" href="/components/canvas-plane" facts="5 frames, changed 2h ago" frames={PREVIEW_FRAMES} />
```

## Accessibility

One link, named by the canvas's name and its facts. The picture is decoration: the frames are hidden from a reader, as the name and the facts say what the card opens.

## API reference

### CanvasPreview

- `name` (`string`, required): The canvas's name.
- `href` (`string`, required): Where the canvas opens.
- `facts` (`string`): One line about it in the product's words: "5 frames, changed 2h ago".
- `frames` (`readonly CanvasPreviewFrame[]`, required): Its frames, laid out as on the canvas and drawn in small, each from its picture where it has one.
- `fill` (`boolean`, default `false`): The card takes its container's whole width, as a tile in a grid. Without it, it keeps to the form's width, as under a message.
- `rootStyle` (`RootStyle`): A component's typed override prop: `Layout` and its documented knobs, each the references it takes or another kit knob of its kind; anything else is a type error at the call site (STYLEX.md).

Rest props go to `<a>` props.
