Card

Card is a container for text, photos, and actions in the context of a single subject.

@lucide-react

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes-storev2.vercel.app/r/card.json

Examples


With Image


API Reference

This component is based on the <div> element and supports all of its props and adds:

CardImage

PropTypeDefaultDescription
srcstring-Image URL (required).
altstring-Alternative text for the image (required).
widthnumber-Width passed to Next.js <Image> component.
heightnumber-Height passed to Next.js <Image> component.
classNamestring-Wrapper <div> styling.
ImageClassNamestring-Custom styles for the <Image> itself.