# AgentBridge

Supply UI 1.1.0. Other parts.

Put it once in the root layout. It makes every Supply UI control usable by an AI agent the person runs in their browser, and shows the dialog that asks before a marked action. Without an agent it does nothing.

## Options

| Option | Type | Default | What it does |
| --- | --- | --- | --- |
| `allowLabel` | `ReactNode` |  | The words on the button that lets the agent go ahead: "Allow" by default. |
| `refuseLabel` | `ReactNode` |  | The words on the button that stops it: "Not now" by default. |
| `title` | `ReactNode` |  | The question shown when an agent wants to do something marked `data-agent-confirm`. |

## CSS parts

With the CSS in parts (`/ui/css/`), it needs: `components/button.css`, `components/card.css`, `components/tabs.css`, `components/dialog.css`, `components/button-group-toggle.css`, `components/tab-bar.css`, `components/prose.css`, `components/carousel-arrows.css`, `components/page-transitions.css`, `parts/carousel.css`, `parts/changed-by-whom.css`, `parts/board.css`, besides the ones every page loads.

## Other parts: notes

Parts of a bigger component (a `CardBody` of a `Card`, a `DialogTitle` of a `Dialog`) and pieces used inside others. Use them inside their component, as its page shows.
