Card

Demo

Card

Find in-depth information about this project

Card with description

Learn more about

Here is some content

Card with footer

Example content
Footer content

Props

PropTypeDescription
titlestring (optional)The title of the Card, displayed in the header.
descriptionstring (optional)A short description or summary for the Card, below the title.
childrenReact.ReactNodeThe main content of the Card.
headerReact.ReactNode (optional)Content for the header of the Card.
footerReact.ReactNode (optional)Content for the footer of the Card.
classNames{ [key: string]: string } (optional)Custom class names for different parts of the Card.

Styles

This component allows for custom styles via the classNames prop:

  • root: CSS class for styling the overall Card component.
  • header: CSS class for styling the header of the card.
  • title: CSS class for styling the title.
  • description: CSS class for styling the description.
  • content: CSS class for styling the main content area of the card.
  • footer: CSS class for styling the footer of the card.