UrlPlate
The Switchboard MCP URL set large in mono on a raised plate, with a copy button and a status row.
Examples
With a status row
Children go in the row under the URL: a Lamp and a few counts.
https://sb.example.dev/mcp/u_7f3k2
<UrlPlate url={mcpUrl}>
<Lamp state="live" label="Trunk live" showLabel />
<span>4 servers</span>
<span>87 tools</span>
</UrlPlate>Usage
import { UrlPlate } from '@switchboard/ui'
<UrlPlate url={mcpUrl} />Props
Every component also takes mix, for css() and mixins applied after its own style.
UrlPlate
| Prop | Type | Default | Description |
|---|---|---|---|
| url* | string | – | The URL shown and copied. |
| label | string | 'Your Switchboard URL' | Accessible name of the region. |
| copyLabel | string | 'Copy URL' | Label of the copy button. |
| children | RemixNode | – | Status row under the URL. |
Also accepts every <section> attribute.
Accessibility
- A labelled <section> region, so it shows up in the landmarks list.
- The URL is plain selectable text; the copy button announces "Copied to clipboard".
Guidance
Do
- Use it once per page, for the one URL people must paste.
Don’t
- Use it for secondary URLs; use CopyField.
- Put a secret in it.