• Get Started
    • Introduction
    • Installation
    • Theming
  • Layout
    • Drawer
    • Footer
    • Hero
    • Indicator
    • Join
    • Stack
    • Divider
  • Navigation
    • Breadcrumbs
    • Dock
    • Menu
    • Link
    • Navbar
    • Pagination
    • Steps
    • Tabs
  • Data Display
    • Accordion
    • Avatar
    • Badge
    • Calendar
    • Card
    • Carousel
    • Chat
    • Collapse
    • Countdown
    • Diff
    • Kbd
    • List
    • Mask
    • Mockup
    • Stat
    • Table
    • Timeline
  • Feedback
    • Alert
    • Loading
    • Modal
    • Progress
    • Skeleton
    • Status
    • Toast
    • Tooltip
  • Forms
    • Button
    • Checkbox
    • Dropdown
    • File Input
    • Fieldset
    • Filter
    • Input
    • Label
    • Radio
    • Range
    • Rating
    • Select
    • Toggle
    • Textarea
  • Effects
    • Hover 3D Card
    • Hover Gallery
    • Speed Dial
    • Swap
    • Text Rotate
    • Theme Controller
jsx daisyUI

    No recently viewed docs

  • Get Started
    • Introduction
    • Installation
    • Theming
  • Layout
    • Drawer
    • Footer
    • Hero
    • Indicator
    • Join
    • Stack
    • Divider
  • Navigation
    • Breadcrumbs
    • Dock
    • Menu
    • Link
    • Navbar
    • Pagination
    • Steps
    • Tabs
  • Data Display
    • Accordion
    • Avatar
    • Badge
    • Calendar
    • Card
    • Carousel
    • Chat
    • Collapse
    • Countdown
    • Diff
    • Kbd
    • List
    • Mask
    • Mockup
    • Stat
    • Table
    • Timeline
  • Feedback
    • Alert
    • Loading
    • Modal
    • Progress
    • Skeleton
    • Status
    • Toast
    • Tooltip
  • Forms
    • Button
    • Checkbox
    • Dropdown
    • File Input
    • Fieldset
    • Filter
    • Input
    • Label
    • Radio
    • Range
    • Rating
    • Select
    • Toggle
    • Textarea
  • Effects
    • Hover 3D Card
    • Hover Gallery
    • Speed Dial
    • Swap
    • Text Rotate
    • Theme Controller

© 2026 jsx-daisyui. All rights reserved. | Built with DaisyUI and React.

Card

Card is a container for grouping related content and actions.

Installation
npx jsx-daisyui add card

Default

card-default

Card Title

A simple card with a title, body text, and action button.

With image

card-image
Shoes

Classic Sneakers

If a dog chews shoes whose shoes does he choose?

Side layout

card-side
Shoes

New Arrivals

Click the button to listen on Spotiwhy app.

Variants

card-variants

Shadow

Default shadow card.

Border

Bordered card variant.

Dash

Dashed border card.

Centered

card-centered

Congratulations!

You have been selected for a special offer.


Props

Card

PropTypeDefaultDescription
size'xs' | 'sm' | 'md' | 'lg' | 'xl''md'The size of the card.
variant'shadow' | 'border' | 'dash''shadow'The visual style of the card container.
sideboolean-Displays image on the side (horizontal layout).
imageFullboolean-Makes the image fill the card and places content over it.

Card.Body

PropTypeDefaultDescription
centeredboolean-Centers text and content inside the body.

Card.Actions

PropTypeDefaultDescription
justify'start' | 'center' | 'end''end'Justification of the action buttons.

Card.Figure

PropTypeDefaultDescription
srcstring-URL for the image. If provided, renders an <img> tag. Otherwise, renders children.
altstring-Alt text for the image.