Card is a container for text, photos, and actions in the context of a single subject.
@lucide-reactInstall the following dependencies:
This component is based on the <div>
element and supports all of its props and adds:
Prop | Type | Default | Description |
---|---|---|---|
src | string | - | Image URL (required). |
alt | string | - | Alternative text for the image (required). |
width | number | - | Width passed to Next.js <Image> component. |
height | number | - | Height passed to Next.js <Image> component. |
className | string | - | Wrapper <div> styling. |
ImageClassName | string | - | Custom styles for the <Image> itself. |