Routing card
A provider card for a routing / connection screen. Shows the provider logo + name, the Payin/Payout flows it handles, and its publish status. Two types: Explore (read-only) and Route (selectable — adds a checkbox + overflow menu). Not published shows Set up; published shows the version + a green Published status + View.
Anatomy
A Card with a header (logo + flow tags top-right, name below; the Route type adds a checkbox on the left and an overflow menu on the right) and a bordered footer (publish status Badge + action Button). Hover lifts the card (primary border + shadow-xl).
- 1Provider logo
40px IconWrapper (logos variant). Route adds a selection Checkbox to its left.
- 2Flow tags
Secondary badges (Payins / Payouts) top-right showing which flows route through this provider.
- 3Overflow menu
Route type only: a DotsThreeOutline menu on the right for per-provider actions.
- 4Title + version
CardTitle (provider name). When published, a version subtitle appears below.
- 5Status + action
Footer: Not published (outline Badge) + Set up, or a green Published StatusBadge + View.
States
Logo + flow tags + name + publish status. Use in a catalog of providers the merchant can explore and set up.
<RoutingCard name="Adyen" flows={["payout"]} />
<RoutingCard name="Adyen" published version="Version 22" />Adds a selection checkbox and an overflow menu. Use in a routing rule where providers are picked and reordered.
<RoutingCard type="route" name="Adyen" onMenu={openMenu} />
<RoutingCard type="route" published defaultChecked onMenu={openMenu} />Import
Copy this import line at the top of the file where you compose this molecule.
import { RoutingCard } from "@/components/patterns/routing-card";Props
Everything else is forwarded to the underlying elements via ...props.
| Prop | Type | Default | Description |
|---|---|---|---|
| name | string | 'Adyen' | Provider name shown as the card title. |
| logo | ReactNode | demo logo | Provider logo (40px IconWrapper). Pass your own brand mark. |
| type | 'explore' | 'route' | 'explore' | 'route' adds a selection checkbox + overflow menu. |
| published | boolean | false | Switches the status, version subtitle, and action button. |
| version | string | 'Version 22' | Version subtitle shown when published. |
| flows | ('payin' | 'payout')[] | ['payout'] | Flow tags shown top-right (Payins / Payouts). |
| defaultChecked | boolean | false | Initial checkbox state (route type). |
| onCheckedChange | (checked: boolean) => void | — | Fires when the selection checkbox toggles (route type). |
| onMenu | () => void | — | Overflow menu handler (route type). |
| onSetup | () => void | — | Set up button handler (not published). |
| onView | () => void | — | View button handler (published). |
| className | string | — | Extra classes merged onto the Card. |
Related
Cross-links to the atoms this molecule composes and sibling patterns.
- Connection cardThe sibling provider card for the Connections screen.
- CardThe atom this molecule is built on.
- BadgeFlow tags + publish status.