Update v4.2 - New components, 10+ framework guides, and quality improvements. Visit Changelog

Tailwind CSS Cards

Build responsive Tailwind CSS cards with headers, footers, images, overlays, hover animations, horizontal layouts, card groups, alerts, and panels.

Default card

Use a basic card with media, text content, and supporting actions.

Cards assume no specific width to start, so they'll be 100% wide unless otherwise stated.

Content types

Cards can hold different combinations of text, media, headers, footers, and actions.

Body

Use the card body for the main content area, including text and supporting actions.

Simple card

Use a body-only card when you do not need a separate header or footer.

Add a header, footer, or both when the card needs clearer structure.

Add a footer to separate secondary actions or summary details from the card body.

Small

Use a compact card size for denser lists, side panels, or secondary content.

Default

Use the default card size for most content blocks and everyday layouts.

Large

Increase the card size when the content needs more breathing room or visual emphasis.

Add navigation in the card header when the panel needs tabs or quick section switching.

Swap the tab-like navigation for a <select> on mobile when horizontal space is limited.

Images

Cards include a few options for working with images. Choose from appending “image caps” at either end of a card, overlaying images with card content, or simply embedding the image in a card.

Top image

Place an image at the top to create a classic media card layout.

Bottom image

Place the image at the bottom when the content should lead before the media.

Image overlays

Use the image as the card background and layer text on top when you need a more visual layout.

Attention needed

Note that content should not be larger than the height of the image. If content is larger than the image the content will be displayed outside the image.

Image scaling animation on hover

Scale the card image on hover to add motion without changing the card layout.

Transition on hover

Animate the card shadow on hover to give the whole surface a stronger interactive feel.

Horizontal

Use a responsive horizontal layout when the image and content should sit side by side on larger screens.

Card group

Use card groups to render cards as a single, attached element with equal width and height columns.

Top bordered card

Add a colored top border to create a stronger status or category accent on the card.

Panel actions

Place quick panel actions in the card header for things like filters, menus, or settings.

Requires JS

Note that this component requires the use of our Tooltip plugin, else you can skip this message if you are already using Preline UI as a bundle.

With alert

Embed an alert inside a card to surface important status or feedback inline.

Centered body content

Center the card body content for confirmation states, promotions, or compact summaries.

Empty state

Use an empty state card when there is no data yet and the interface needs guidance or next steps.

Scrollable body

Make the card body scrollable when the content should stay contained within a fixed-height panel.

© 2026 Preline Labs.