Patterns

Card

The one surface: hairline border, no shadow at rest.

Static card

For content that is read.

Body text.

Interactive card

Lifts on hover; the whole card is the target.

Import#

Everything comes from the package root. The example above uses:

your-component.tsx
import { Card, CardDescription, CardHeader, CardTitle } from "@waveinno/ui";

Props#

Read from the source of this version, so they match the code exactly.

<Card>

src/components/ui/card.tsx
PropTypeDefaultDescription
interactiveboolean—

Also takes HTMLAttributes<HTMLDivElement>.

<CardDescription>

src/components/ui/card.tsx

Also takes HTMLAttributes<HTMLParagraphElement> (passed through).

<CardHeader>

src/components/ui/card.tsx

Also takes HTMLAttributes<HTMLDivElement> (passed through).

<CardTitle>

src/components/ui/card.tsx

Also takes HTMLAttributes<HTMLHeadingElement> (passed through).

Install#

If the project does not have the package yet, add it, then follow the setup for Next.js or Vite once.

$ npm install @waveinno/ui