# Market side

The tone every catman figure shares: favourable, exposed, level, unknown. Named after the reader's question (is this going my way) rather than the arithmetic, plus the arrow that carries it without colour and the two colour tokens behind it.

Docs: https://ui.twelfth.ai/market-side · Category: Foundations · Updated: 2026-10-30

## Install

```bash
npx shadcn@latest add https://ui.twelfth.ai/r/market-side.json
```

```tsx
import { MarketArrow, marketSideFromPosition, marketToneClass } from "@/components/ui/market-side"
```

## Example

```tsx
<span className={cn("rounded px-2 py-1", marketToneClass.exposed)}>
  <MarketArrow side="exposed" pointing="ours" />
  …
</span>
```

## All four tones

```tsx
marketToneClass.favourable // bg-favourable text-favourable-foreground
marketToneClass.exposed    // bg-exposed text-exposed-foreground
```

## MarketArrow props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `side` (required) | `MarketSide` |  | Which tone. |
| `pointing` | `"theirs" \| "ours"` | `"theirs"` | A gap points their way; an index points ours. |

## marketSideFromPosition props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `positionPct` (required) | `number \| null` |  | Above market is exposed, below favourable, within half a percent level. |

## Notes

- Installs --favourable, --favourable-foreground, --exposed, --exposed-foreground with light and dark values.

---

twelfth UI: Open-source (MIT) shadcn components for category managers and retail buying teams, by twelfth (https://twelfth.ai). React and TypeScript on shadcn's Base UI styles and Tailwind CSS v4. Components take plain props and fetch no data. Every block: https://ui.twelfth.ai/llms.txt
