Card
Cards are flexible containers for grouping related content and actions.
Import
import { Card } from '@sigx/daisyui';
Basic Usage
Loading preview...
With Image
Loading preview...
Variants
Bordered
Loading preview...
Compact
Loading preview...
Card Grid
Loading preview...
Props
Card Props
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'normal' | 'compact' | 'side' | 'bordered' | 'image-full' | 'normal' | Card style variant |
shadow | boolean | 'sm' | 'md' | 'lg' | 'xl' | true | Shadow style |
bordered | boolean | false | Add border style (card-bordered) |
glass | boolean | false | Glassmorphism style |
imageFull | boolean | false | Full-image overlay style |
bgColor | string | 'bg-base-100' | Background utility class |
class | string | undefined | Additional CSS classes |
Card.Body Props
| Prop | Type | Default | Description |
|---|---|---|---|
center | boolean | false | Center content horizontally |
class | string | undefined | Additional CSS classes |
Card.Title Props
| Prop | Type | Default | Description |
|---|---|---|---|
class | string | undefined | Additional CSS classes |
Card.Actions Props
| Prop | Type | Default | Description |
|---|---|---|---|
justify | 'start' | 'center' | 'end' | 'end' | Actions alignment |
class | string | undefined | Additional CSS classes |
Card.Image Props
| Prop | Type | Default | Description |
|---|---|---|---|
src | string | - | Image source URL |
alt | string | '' | Alt text |
class | string | undefined | Additional classes for the figure wrapper |