# Priority row

A row of chips that gives up words in order: shorter forms first, then the least important go icon-only, before anything is cut.

Live variants: https://design.arcadia.is/components/priority-row

```tsx
import { PriorityRow, PriorityItem } from "@arcadia/ui";
```

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

<div {...stylex.props(PriorityRowS.stack)}>
  <div {...stylex.props(PriorityRowS.atWide)}><RowSectionLabel>Full width</RowSectionLabel><Footer /></div>
  <div {...stylex.props(PriorityRowS.atWide, PriorityRowS.mid)}><RowSectionLabel>Medium width</RowSectionLabel><Footer /></div>
  <div {...stylex.props(PriorityRowS.narrow)}><RowSectionLabel>Narrow width</RowSectionLabel><Footer /></div>
</div>
```

## Accessibility

Going icon-only hides an item's words from the eye, not from the page: a chip's or a trigger's label stays its accessible name, so a screen reader hears the same control at every width. A shorter form works the same way: the full text stays in the page as the name, and the form on screen is hidden from assistive technology, so nothing is read twice. On hover, a collapsed item shows its `tip`, which names what it holds. Nothing moves in the tab order, and every control stays where it was.

## API reference

### PriorityRow

- `rootStyle` (`PriorityRowStyle`): The row takes the width it is given, never its items'.

Rest props go to `<div>` props.

### PriorityItem

- `priority` (`number | "flex" | "fixed"`, required): Its texts' shorter forms come before icon-only.
- `tip` (`ReactNode`): Shown on hover while collapsed.

Rest props go to `<div>` props.
