Card

Card is a neobrutalist React component from Cruise UI. A bordered box with an optional --primary header strip; clickable when it has a link. Install it with npx shadcn@latest add @cruiseui/card.

Install

Terminal

npx shadcn@latest add @cruiseui/card

First time? Installation shows the one-off components.json setup (the @cruiseui registry) and how to turn the theme on.

Example

Corners

Oshodi – CMS

9 stops · ₦800 · every 15 minutes

Ikeja – Yaba

7 stops · ₦600. The whole card is a link.

When to use it

When to use

Grouping one item's details: a product, a route, a plan.

When not to

Page sections (use plain sections with dividers). Wrapping a single line of text.

Props

CruiseCard

PropTypeDefaultDescription
title?ReactNode—Shown in a full-width --primary header strip. Omit for no strip.
childrenReactNode——
href?string—Makes the whole card a link that moves on hover/active.
className?string——
style?CSSProperties——

Accessibility

  • A clickable card is one link (the whole card), not nested links.
  • The title is a heading, so people can jump between cards.