Card is a flexible container for grouping and displaying content. It supports custom backgrounds, borders, layouts, and composition via subcomponents for body, title, and actions. Use Card to present information in a visually distinct and organized way.
The main wrapper for card content. Customize its appearance with props for border, layout, and size. Use with CardBody, CardTitle, and CardActions for best results.
Card Props
Type
Description
is
string | object | function
The HTML tag or component to render as the card root. Default is div.
border
boolean
Adds a border to the card (1px base-color).
dash
boolean
Adds a dashed border to the card.
side
boolean
Places the card body next to the image (horizontal layout).
imageFull
boolean
Places the image behind the card body.
size
string
Sets the card size to one of the below boolean props.
  Â
xl
boolean
Sets size to xl.
  Â
lg
boolean
Sets size to lg.
  Â
md
boolean
Sets size to md.
  Â
sm
boolean
Sets size to sm.
  Â
xs
boolean
Sets size to xs.
Card Slots
Description
default
The default slot. Place CardBody, CardTitle, CardActions, images, or other content here.
The main content area of the card. Use for text, images, or other elements you want inside the card.
This component uses the Text component under the hood, so all Text props are also supported.
CardBody Props
Type
Description
is
string
The HTML tag to render as the CardBody root. Default is div.
CardBody Slots
Description
default
The default slot. Content to be displayed inside the card body.
The title or heading for the card. Use for headings, section titles, or highlighted text.
This component uses the Text component under the hood, so all Text props are also supported.
CardTitle Props
Type
Description
is
string
The HTML tag to render as the CardTitle root. Default is div.
CardTitle Slots
Description
default
The default slot. Content to be displayed as the card title.
The actions area of the card. Use for buttons, links, or any interactive elements related to the card.
This component uses the Text component under the hood, so all Text props are also supported.
CardActions Props
Type
Description
is
string
The HTML tag to render as the CardActions root. Default is div.
CardActions Slots
Description
default
The default slot. Content to be displayed as card actions (e.g., buttons).