Marketplace listing card with sector, status, metrics, access badges and actions.
Design intent
Deal lists repeat the same card across trends, search and saved views. DealCard keeps the metrics and access state consistent and never implies NDA or CIM access without an explicit badge.
npx @slipstream-ui/cli@latest add deal-cardTransportation
AvailableMulti-regional logistics platform
West region
Recurring services and reporting across a multi-state operation.
- Revenue
- $20.4M
- EBITDA
- $4.2M
- Margin
- 21%
Technology
Under NDARetail procurement platform
West region
- Revenue
- $14.4M
- EBITDA
- $6.8M
- Margin
- 47%
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | required | Listing headline. |
| sector | string | required | Sector or industry label. |
| location | string | — | Region or location. |
| description | string | — | Optional short summary. |
| metrics | DealMetric[] | required | Three headline metrics. |
| status | 'available' | 'under-nda' | 'closed' | 'draft' | 'available' | Availability state. |
| ndaAvailable | boolean | — | Show the NDA badge. |
| cimAvailable | boolean | — | Show the CIM badge. |
| href | string | — | Optional detail link. |
| linkComponent | React.ElementType | — | Custom link element for routers. |
| linkHrefProp | 'href' | 'to' | 'href' | Prop name used to pass the destination to linkComponent. |
| saved | boolean | false | Save toggle state. |
| onSave | () => void | — | Save toggle handler. |
| saveLabel | string | 'Save' | Save button label. |
| onRequestAccess | () => void | — | Request access handler. |
| requestLabel | string | 'Request access' | Request access label. |
Anti-patterns
validate_usage is the MCP tool that rejects these mistakes: the same list agents see over MCP and in the canonical markdown.
Don't imply access with color
NDA and CIM access are stated as text badges. Do not use color or a lock icon alone.
tsx<DealCard ndaAvailable cimAvailable />
Accessibility
- NDA and CIM access are text badges, never color or icons alone.
- Request access and Save are real buttons; Save exposes aria-pressed.
Composition
Compose with Grid: Place cards in a responsive Grid
<Grid mdCols={2} gap="lg"><DealCard ... /></Grid>
Compose with LoadMore: Pair a deal grid with LoadMore for paginated results
<DealCard ... /><LoadMore hasMore={hasMore} onLoadMore={load} />
Related components: Card, Badge, EntityCard, LoadMore
Dependencies
What the registry installs alongside this component. Package imports already include these.
npm packages
- class-variance-authority
- clsx
- tailwind-merge
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+: macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA, the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.