# Provider mark

Every model provider's mark for model pickers: a monochrome glyph on the icon scale, bare or on a tile.

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

```tsx
import { ProviderMark, isProviderName } from "@arcadia/ui";
```

```tsx
import { useState } from "react";
import {
  Menu, MenuTrigger, PickerTrigger, MenuContent, MenuRadioGroup, MenuRadioItem,
  ProviderMark,
} from "@arcadia/ui";

function ProviderPicker() {
  const [model, setModel] = useState("large");
  const current = MODELS.find((m) => m.id === model)!;
  return (
    <Menu>
      <MenuTrigger render={<PickerTrigger label={current.label} />} />
      <MenuContent width={240}>
        <MenuRadioGroup label="Models" value={model} onValueChange={(v) => setModel(String(v))}>
          {MODELS.map((m) => (
            <MenuRadioItem
              key={m.id}
              value={m.id}
              icon={<ProviderMark provider={m.provider} />}
              description={m.context}
            >
              {m.label}
            </MenuRadioItem>
          ))}
        </MenuRadioGroup>
      </MenuContent>
    </Menu>
  );
}
```

## Accessibility

Decorative unless given a `label`, which makes it an `img` named "OpenAI". Omit the label where the provider's name is in the text beside it; in a picker, the model name usually says enough. Under forced colours the glyph follows CanvasText and a tile keeps a 1px outline.

## API reference

### ProviderMark

- `provider` (`"openai" | "xiaomi" | "zai" | "opencode" | "grok" | "deepseek" | "google" | "anthropic" | "claude" | "mistral" | "commandcode" | "cursor" | "gmail" | "github"`, required): Whose models these are.
- `size` (`"sm" | "md" | "lg" | "text"`, default `"text"`): `text`: beside a label, in the frame of the icon of the label's text style, the drawing as tall as its letters (1.09 cap heights; a flat mark 1.00), at most 1.3 times that wide. `sm` 12px, `md` 14px, `lg` 16px: standalone. A tile wraps it in 20 / 24 / 28.
- `tile` (`boolean`, default `false`): Set the glyph on a small continuous-corner squircle in a fill rank, like the app icon.
- `label` (`string`): Accessible name ("OpenAI"). Omit when the provider's name is already in the text beside it.
- `rootStyle` (`RootStyle<ProviderMarkKnobs>`): Typed StyleX override: layout and the `--provider-mark-*` knobs.

Rest props go to `<span>` props and `render`.
