# Provider row

A connection provider card and section: optional mark, name, plain line, state and action, nested account rows and responsive columns.

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

```tsx
import { ProviderGroup, ProviderRow } from "@arcadia/ui";
```

```tsx
import { Button, ProviderGroup, ProviderRow, ProviderMark } from "@arcadia/ui";

<ProviderGroup label="Source control">
  <ProviderRow
    mark={<ProviderMark provider="github" tile size="lg" />}
    name="GitHub"
    description="Access repositories, branches and pull requests"
    action={<Button size="sm" variant="secondary">Connect</Button>}
  />
</ProviderGroup>
```

## Accessibility

`ProviderGroup` renders a named `section` over a `ul` with `role="list"`, so screen readers count the providers in each section and announce the section heading. Choose `level` to fit the surrounding heading order.

Omit `label` on `ProviderMark` when the provider name already stands beside it so the name is not read twice. Actions and row menus inside connected `SettingsRow` children follow standard keyboard focus order and Escape dismissal.

## API reference

### ProviderGroup

- `label` (`ReactNode`): Quiet section heading naming what the connections are for ("Source control").
- `level` (`2 | 3 | 4 | 5 | 6`, default `3`): Heading rank for `label`.
- `columns` (`"auto" | 1 | 2`, default `"auto"`): Column layout at wide widths (`40rem` and up). `"auto"` keeps one column for one to three providers and moves to two columns from four providers on. Pass `1` or `2` when sibling groups on one page should share one grid.
- `id` (`string`)
- `rootStyle` (`RootStyle`): Typed StyleX override: where the group sits.

### ProviderRow

- `nesting` (`"contained-object"`): Mark a separately framed provider contained in another surface.
- `mark` (`ReactNode`): Leading brand mark when the kit has one (`ProviderMark`). Omit when none exists; no empty slot is reserved.
- `name` (`ReactNode`, required): Provider name ("GitHub").
- `description` (`ReactNode`): One plain line of what connecting gives.
- `state` (`ReactNode`): Quiet state when connected (`StatusDot` with words). Omit when not connected.
- `action` (`ReactNode`): One act at the end ("Connect", or a way to manage when connected).
- `rootStyle` (`RootStyle`): Typed StyleX override: where the card sits.
- `children` (`ReactNode`): Connected accounts and provider rows (`SettingsRow`s) under the provider inside the same hairline card.
