# Reference

A card or a board named in a line of text, with a preview.

Live variants: https://design.arcadia.is/components/reference

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

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

<p {...sx("reference-line", ReferencePage.line)}>
  Once <Reference icon="task" name="CREW-12" title="Move the build to the new runner" href="/components/card" preview={preview} /> lands,
  {" "}<Reference icon="task" name="CREW-9" href="/components/card" done /> can close, and the rest waits on the{" "}
  <Reference icon="overview" name="Launch" href="/components/board-column" /> board. <Reference name="#CREW-40" missing /> is gone.
</p>
```

## Accessibility

A reference is one link and one stop for the keyboard, named by its words; its glyph is hidden. A card that is done is heard with "done" after its words, and a thing archived with "archived". Keyboard focus opens the preview as the pointer does, and Escape closes it. Something gone is plain text, with nothing to press.

## API reference

### Reference

- `name` (`string`, required): Its key or name.
- `title` (`string`): Its title, where one was chosen.
- `icon` (`IconName`): Its kind's glyph.
- `href` (`string`): Where it opens.
- `done` (`boolean`, default `false`): The check in the glyph's place.
- `archived` (`boolean`, default `false`): Off its board or list, and still there: still a link with its preview and an archived label.
- `missing` (`boolean`, default `false`): Gone or out of reach: plain words, whatever `done` and `archived` say.
- `preview` (`ReactNode`): What its `HoverCard` shows on hover and focus.
- `inline` (`boolean`, default `false`)
- `rootStyle` (`RootStyle`): Typed StyleX override: layout.

Rest props go to `HTMLAttributes<HTMLElement>`.
