Card Examples

Explore the various card styles, layouts, and use cases available in Heco UI.

Card Variants

Default Card

The standard card style

This is the default card style with a clean background.

Outlined Card

A subtle bordered style

This card has a border but a transparent background.

Elevated Card

With a shadow effect

This card has a shadow to create a raised effect.

Interactive Cards

Hoverable Card

Hover over me

This card has a hover effect that adds a subtle shadow.

Clickable Card

Click me

This entire card is clickable and has active state feedback.

Cards with Media

Card image

Media Card

With a 16:9 image

This card includes a media element with a 16:9 aspect ratio.

Card image

Overlay Text

With a semi-transparent background

Overlay Card

With text overlay on image

This card has an overlay on top of the image.

Real-world Card Examples

Product image

Wireless Headphones

$129.99
(42 reviews)

Premium wireless headphones with noise cancellation and 30-hour battery life.

Blog post image
Technology

The Future of Web Development in 2025

Explore the upcoming trends and technologies that will shape web development in the coming year.

Author

Jane Smith

April 7, 2025 ยท 5 min read

Card API

The Card component API reference.

Card Props

PropDescriptionTypeDefault
variantVisual style variant of the card"default" | "outlined" | "elevated""default"
isHoverableWhether to show hover effectsbooleanfalse
isClickableWhether the card is clickablebooleanfalse

Card Media Props

PropDescriptionTypeDefault
srcImage source URLstringRequired
aspectRatioAspect ratio of the media"auto" | "square" | "video" | "wide""auto"
overlayContent to display over the imageReact.ReactNode-