ArticleCard
Linked article or resource card with media, eyebrow, title, summary and metadata.
Design intent
Content hubs repeat the same article tile. ArticleCard owns the image aspect, title hierarchy, excerpt clamp and metadata row so blog, resource and LOI pages do not each invent a card.
npx @slipstream-ui/cli@latest add article-cardProps
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | required | Article title. |
| description | string | — | Summary copy. |
| href | string | required | Destination URL. |
| eyebrow | string | — | Category or content type. |
| media | ReactNode | — | Image, illustration or video poster. |
| meta | ReactNode | — | Date, read time, author or other metadata. |
| linkComponent | React.ElementType | — | Custom link element for routers. |
| linkHrefProp | 'href' | 'to' | 'href' | Prop name used to pass the destination to linkComponent. |
| variant | 'default' | 'compact' | 'default' | Standard or compact card. |
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 nest controls in the card
The whole card is one link. Put save, share or menu actions outside the card or redesign the card as a non-link panel.
tsx// Avoid<ArticleCard href="/x" title="X" />
Accessibility
- The whole card is one link; do not nest buttons or links inside it.
- Use alt="" for decorative covers or a meaningful alt for informative images.
Composition
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.