Skip to content

UrlPlate

The Switchboard MCP URL set large in mono on a raised plate, with a copy button and a status row.

DataIsland

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
Trunk live4 servers87 tools
Example
<UrlPlate url={mcpUrl}>
  <Lamp state="live" label="Trunk live" showLabel />
  <span>4 servers</span>
  <span>87 tools</span>
</UrlPlate>

Usage

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

UrlPlate props
PropTypeDefaultDescription
url*string–The URL shown and copied.
labelstring'Your Switchboard URL'Accessible name of the region.
copyLabelstring'Copy URL'Label of the copy button.
childrenRemixNode–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.