Card

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

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes.com/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

PropTypeDefault
srcstring-
altstring-
widthnumber-
heightnumber-
classNamestring-
ImageClassNamestring-