Card

A Card component is a versatile UI element used to display content in a structured and visually appealing way. It typically contains related information, such as text, images, buttons, and other elements, within a bordered or shadowed container. Cards are often used for presenting individual items, like products, articles, or profiles, making the content easy to scan and interact with.
# Demo

Basic Cards

Simple card layouts with different content types.

Simple Card

This is a basic card with minimal content and clean styling.

Highlighted Card

This card has a colored border to draw attention.

Gradient Card

This card features a subtle gradient background.

Profile Cards

Cards designed for displaying user profiles and information.

JD

John Doe

Software Engineer

Passionate developer with 5+ years of experience in React and TypeScript.

AS

Alice Smith

UX Designer

San Francisco
Joined 2023
124
Projects
2.1k
Followers
180
Following

Content Cards

Cards for articles, blog posts, and media content.

March 15, 20245 min read

Getting Started with React Components

Learn how to build reusable and maintainable React components with modern best practices and TypeScript.

Sarah Johnson

Weekly Newsletter

Stay updated with the latest news

New React 19 features announced
TypeScript 5.4 released with improvements
Best practices for component testing

Product Cards

E-commerce style cards for products and services.

Product Image

Wireless Headphones

Premium noise-canceling headphones

(124 reviews)
$299$399

Smart Watch

Track your fitness and stay connected

(89 reviews)
$199

Laptop Stand

Ergonomic aluminum laptop stand

(67 reviews)
$79

Statistics Cards

Cards for displaying metrics and key performance indicators.

Total Users

12,345

+12% from last month

Page Views

98.2K

+8% from last week

Downloads

1,234

-3% from yesterday

Revenue

$45.2K

+22% from last month

Interactive Cards

Cards with hover effects and click interactions.

Clickable Card

This entire card is clickable and shows hover effects.

Learn more →

Hover Effect Card

This card changes appearance when you hover over it.

Custom Styled Cards

Cards with unique styling and layouts.

Featured Article

This card has a colorful top border to indicate special status.

Published 2 days ago3 min read

Premium Feature

This card uses a gradient background to highlight premium content.

# Usage
# Attributes
NameTypeDefaultDetails
classNamestring' 'You can customise by passing tailwind classes.
childrenReact.ReactNodeRequiredYou can pass card content as children.
onClick(e: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>) => voidOptionalYou can get callback when card is clicked.