Card#

Cards are flexible containers for grouping related content and actions.

Import#

TSX
import { Card } from '@sigx/daisyui';

Basic Usage#

TSX
Loading preview...

With Image#

TSX
Loading preview...

Variants#

Bordered#

TSX
Loading preview...

Compact#

TSX
Loading preview...

Card Grid#

TSX
Loading preview...

Props#

Card Props#

PropTypeDefaultDescription
variant'normal' | 'compact' | 'side' | 'bordered' | 'image-full''normal'Card style variant
shadowboolean | 'sm' | 'md' | 'lg' | 'xl'trueShadow style
borderedbooleanfalseAdd border style (card-bordered)
glassbooleanfalseGlassmorphism style
imageFullbooleanfalseFull-image overlay style
bgColorstring'bg-base-100'Background utility class
classstringundefinedAdditional CSS classes

Card.Body Props#

PropTypeDefaultDescription
centerbooleanfalseCenter content horizontally
classstringundefinedAdditional CSS classes

Card.Title Props#

PropTypeDefaultDescription
classstringundefinedAdditional CSS classes

Card.Actions Props#

PropTypeDefaultDescription
justify'start' | 'center' | 'end''end'Actions alignment
classstringundefinedAdditional CSS classes

Card.Image Props#

PropTypeDefaultDescription
srcstring-Image source URL
altstring''Alt text
classstringundefinedAdditional classes for the figure wrapper