# Priority mark

A priority in ink, told by shape: none, low, medium, high and urgent.

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

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

```tsx
import { PRIORITIES, PriorityMark } from "@arcadia/ui";

<div {...stylex.props(PriorityMarkStyles.list)}>
  {PRIORITIES.map((p) => <PriorityMark key={p.value} priority={p.value} label />)}
</div>
```

## Accessibility

Alone, the mark is an image named "Priority: high", and "No priority" for none. With `label` the glyph is decoration and the word is read. Shape tells the five apart, so no state rests on colour (C14).

## API reference

### PriorityMark

- `priority` (`"none" | "low" | "medium" | "high" | "urgent"`, required): A thing's priority, a rank told apart by shape and never by hue: `none` to `urgent`.
- `label` (`boolean`, default `false`): The word beside the glyph ("High"), for a menu row or a field; without it the glyph alone, named "Priority: high".
- `rootStyle` (`RootStyle`): Typed StyleX override: where the mark sits.

Rest props go to `<span>` props.
