--- layout: layouts/component.njk title: Card description: Displays a card with header, content, and footer. toc: - label: Usage id: usage - label: Examples id: examples children: - label: With content and footer id: example-with-content-and-footer - label: With image id: example-with-image --- {% from "macros/code_preview.njk" import code_preview %} {% from "macros/code_block.njk" import code_block %} {% set code %}

Login to your account

Enter your details below to login to your account

{% endset %} {{ code_preview("card", code, "w-full max-w-sm") }}

Usage

Simply add the card class to any element and then define any of the children elements:

See the kitchen sink for more examples.

{% set code %}

Card Title

Card Description

Card Content

{% endset %} {{ code_block(code) }}

Examples

{% set code %}

Meeting Notes

Transcript from the meeting with the client.

Client requested dashboard redesign with focus on mobile responsiveness.

  1. New analytics widgets for daily/weekly metrics
  2. Simplified navigation menu
  3. Dark mode support
  4. Timeline: 6 weeks
  5. Follow-up meeting scheduled for next Tuesday
{% endset %} {{ code_preview("card-with-content-and-footer", code) }}

With image

{% set code %}

Is this an image?

This is a card with an image.

Photo by Drew Beamer
{% endset %} {{ code_preview("card-with-image", code) }}