TombstoneCard
Placeholder card for archived, closed or unavailable marketplace items.
Design intent
Removing unavailable items silently breaks saved links and user expectations. TombstoneCard keeps the item in place and states the reason and status.
npx @slipstream-ui/cli@latest add tombstone-cardDocument no longer available
The seller withdrew this opportunity.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | required | Listing, item or document name. |
| reason | string | — | Why the item is unavailable. |
| status | 'archived' | 'unavailable' | 'closed' | 'unavailable' | Unavailable state. |
| logo | ReactNode | — | Logo or document icon slot. |
| href | string | — | Optional detail destination. |
| actionLabel | string | 'View details' | Link label. |
| linkComponent | React.ElementType | — | Custom link element for routers. |
| linkHrefProp | 'href' | 'to' | 'href' | Prop name used to pass the destination to linkComponent. |
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 remove the item without explanation
A saved link or bookmark should still resolve to a card that explains the state.
tsx<TombstoneCard title="." reason="." />
Accessibility
- The unavailable state is a text badge, not color alone.
- The reason stays visible so a saved link still explains the state.
Composition
Compose with Grid: Use in place of a DealCard or EntityCard when the item is unavailable
<Grid><TombstoneCard ... /></Grid>
Related components: Card, Badge, DealCard, EntityCard
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.