Docs
Card

Card

Displays a card with header, content, and footer.

Loading...
Loading...

Installation

npx shadcn-ng@latest add card
npm
yarn
pnpm
bun

Copy and paste the following code into your project.

Update the import paths to match your project setup.

Usage

import {
  UbCardContentDirective,
  UbCardDescriptionDirective,
  UbCardDirective,
  UbCardFooterDirective,
  UbCardHeaderDirective,
  UbCardTitleDirective,
} from '@/components/ui/card'
 <div ubCard>
    <div ubCardHeader>
        <h3 ubCardTitle>Card Title</h3>
        <p ubCardDescription>Card Description</p>
    </div>
    <div ubCardContent>
       <p>Card Content</p>
    </div>
    <div ubCardFooter>
        <p>Card Footer</p>
    </div>
</div>