Cards

Cards are flexible containers for displaying content in a clear and organized way. They support various content types and can be composed of multiple sections including headers, footers, media, and more.

Basic Usage

The simplest card contains a body section with content. You can add titles and subtitles for better content hierarchy.

Basic Card

100%
Simple Card Supporting text below the title

This is a basic card with just a body section.

Variants

Cards come in different variants to suit various use cases and interactions.

Card Variants

100%
Basic Card

Default card with subtle shadow

Hover Card

Elevates on hover for interactive content

Flat Card

No shadow, just borders

Media Content

Cards can include media content like images or videos at the top or bottom.

Card with Media

100%
Media Card

Cards support various media types including images and videos.

Complete Example

Combine all card components to create rich content containers.

Complete Card

100%
Featured Content With all card components

This example shows a card with all possible sections: media, header, body, and footer.

Cancel Save Changes

API Reference

Card Container

Property Type Default Description variant string 'basic' 'basic', 'hover', 'flat' href string - Makes the entire card clickable

Card Media

Property Type Default Description src string - URL of the media content alt string - Alt text for images position string 'top' 'top' or 'bottom'

Best Practices

  • Use consistent spacing within cards
  • Keep content concise and focused
  • Use appropriate variants for interactive content
  • Include clear calls-to-action in footers
  • Optimize media content for performance
Pro tip: Make entire cards clickable by adding the href attribute when the card represents a single action.