Connector Card States
A registry example that renders four ConnectorCard variants stacked vertically, one for each OAuth connection state: connected, disconnected, needs-auth, and error. It shows how the connection prop changes the card and where the enabled switch applies.


shadcn add · no workarounds · theme neutral (none shipped)Installation
Requires @seamui in the registries of your components.json (shadcn adds official directory namespaces automatically).
Usage
import { GitBranch } from "lucide-react"import { ConnectorCard } from "@/registry/seam/ui/connector-card"export default function Example() { return ( <ConnectorCard name="GitHub" icon={<GitBranch />} connection="connected" enabled /> )}- Showing a reference of every OAuth connection state for a third-party connector such as GitHub before building a settings page.
- Checking visual parity of connected, disconnected, needs-auth, and error states during design review or QA.
- Demonstrating the enabled switch that appears only on connected connectors.
- Serving as a starting point for a connector list that must handle authentication failures.
Examples
All four connection states
Renders the full state matrix in a column, as in the registry item itself.
import { GitBranch } from "lucide-react"import { ConnectorCard } from "@/registry/seam/ui/connector-card"export default function ConnectorCardStates() { return ( <div className="flex w-full max-w-sm flex-col gap-3"> <ConnectorCard name="GitHub" icon={<GitBranch />} connection="connected" enabled /> <ConnectorCard name="GitHub" icon={<GitBranch />} connection="disconnected" /> <ConnectorCard name="GitHub" icon={<GitBranch />} connection="needs-auth" /> <ConnectorCard name="GitHub" icon={<GitBranch />} connection="error" /> </div> )}Connected connector with switch enabled
A single connected card with the per-conversation switch turned on via the enabled prop.
import { GitBranch } from "lucide-react"import { ConnectorCard } from "@/registry/seam/ui/connector-card"export default function ConnectedGitHub() { return ( <div className="w-full max-w-sm"> <ConnectorCard name="GitHub" icon={<GitBranch />} connection="connected" enabled /> </div> )}Error state for a failed connector
Shows the error state, which uses the sanctioned attention hue.
import { GitBranch } from "lucide-react"import { ConnectorCard } from "@/registry/seam/ui/connector-card"export default function FailedGitHub() { return ( <div className="w-full max-w-sm"> <ConnectorCard name="GitHub" icon={<GitBranch />} connection="error" /> </div> )}API reference
Accessibility
- The per-conversation switch on the connected card should be a native switch control with an accessible name tied to the connector, such as GitHub, so screen readers announce what it toggles.
- The needs-auth and error states should communicate status in text, not by hue alone, so that color-blind users receive the same information.
- Icons are decorative when the name is rendered as text; verify that GitBranch does not add a duplicate announcement.
- Keep the card focusable and keyboard-operable if it is interactive, and make the focus ring visible on the card and its switch.
Docs written by anthropic:claude-haiku-5-5 from the registry source.
Use with Coding Agent
Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.
Use the "Connector Card States" component (seamui/connector-card-states) from its shadcn registry.1. Install it with: npx shadcn@latest add @seamui/connector-card-states2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: name, icon, connection, enabled.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { GitBranch } from "lucide-react"import { ConnectorCard } from "@/registry/seam/ui/connector-card"export default function Example() { return ( <ConnectorCard name="GitHub" icon={<GitBranch />} connection="connected" enabled /> )}```Files & dependencies
- registry/seam/examples/connector-card-states.tsx