Data & feedback@neumorphism-ui/card

Card

A layout component composed from Header, Title, Description, Action, Content, and Footer. The root is a div by default, so choose headings and interactive elements that match the content semantics.

@neumorphism-ui/card
Registry JSON

Preview

Market overview

See today's watchlist movement at a glance.

Live
₩72,400+2.41%

Inset surface

Use recessed depth for supporting information.

x

Installation

Installation: cardnpx shadcn@latest add @neumorphism-ui/card

The CLI resolves npm dependencies, base tokens, utilities, and component source in order.

New to this Registry? Set up the namespace before continuing.

Usage

Usage: Installationnpx shadcn@latest add @neumorphism-ui/button @neumorphism-ui/card

Import

Card import code
import { Button } from "@/components/ui/button"
import {
  Card,
  CardAction,
  CardContent,
  CardDescription,
  CardFooter,
  CardHeader,
  CardTitle,
} from "@/components/ui/card"

Example

Card usage code
<Card variant="raised">
  <CardHeader>
    <CardTitle>Team workspace</CardTitle>
    <CardDescription>Collaborate with shared tokens.</CardDescription>
    <CardAction>
      <Button size="sm">Open</Button>
    </CardAction>
  </CardHeader>
  <CardContent>8 members are participating.</CardContent>
  <CardFooter>Last updated just now</CardFooter>
</Card>

API Reference

ComponentPropTypeDefaultDescription
Cardvariant"raised" | "soft" | "inset" | "flat""raised"Selects the surface depth and border treatment.
CardchildrenrequiredReact.ReactNode—Arranges the composable Card subcomponents.
CardActionchildrenReact.ReactNode—An action or status area on the right side of the Header.
CardTitlechildrenrequiredReact.ReactNode—The Card heading, rendered as h3 by default.

Accessibility

  • 01

    Card is a div and does not automatically add a landmark or article role.

  • 02

    If h3 does not fit the page heading hierarchy, use an appropriate heading element instead of CardTitle.

  • 03

    When making the entire Card clickable, avoid nesting other buttons or links inside it.