Card Examples
4 card compositions: a basic card with actions, a login form, a listing card with a full-width photo and spec pills, and meeting notes with attendee avatars. Each on React, Vue, Svelte and Solid, with Base UI, React Aria, Ark UI or Radix UI on React.
Every card example
4 examples.
- Image CardStandardA listing card titled 3-Bedroom House, with a full-width photo, pills for 3 bedrooms, 2 bathrooms and 240m², and a price of $425,000.

- Login CardStandardA card titled Login to your account, with email and password fields, Forgot your password?, Login, Login with Google, and a sign-up link.

- Meeting Notes CardStandardA card titled Meeting Notes, with a summary line, a numbered list of five decisions, and three attendee avatars in the footer.

- Standard CardStandardA card titled Card Title, with a one-line description, a short content paragraph, and Cancel and Submit in the footer.

Or describe it. With Pro, your AI agent installs the card example you describe, on your framework and UI library.
Get ProGalleries
More component examples
8 related galleries, free: open one for its live examples and their code.
Pricing
Card examples MCP, with Pro
Your AI agent installs any of the 1364 examples, and every component, block and icon, with every Pro plan.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
shadcn.io's Card is a container that groups related content behind one border and one spacing system, with optional parts: CardHeader with CardTitle, CardDescription and CardAction, CardContent, CardFooter and CardMedia. Use it for forms, listings, dashboard widgets and settings panels. Each example in this gallery is one small file built from these parts.
Yes. Every example is free to use in personal and commercial projects, with no attribution required. Seeing the code and installing an example takes a free shadcn.io account.
The Card gives every part the same insets and gaps from one variable, rounds and clips its corners, uses the card color tokens so dark mode follows, and lays out a header action next to the title. You could rebuild that per project; the parts keep it the same everywhere.
A Card for a self-contained unit with several parts, such as a picture, a title, details and actions. A list or a table for many rows that share the same few fields. An Alert for a status message.
The login card: a title and description in the header, email and password fields with a forgot-password link in the content, Login and Login with Google buttons, and a sign-up link in the footer. Wrap it in a form to submit it.
Make the image the card's first child for a photo at the top: the card drops its top padding and rounds the photo's corners. For a photo lower down, as in the image card, put it in CardContent with no padding so it reaches the side edges.
Add CardAction inside CardHeader. The header turns into two columns and the action sits at the top on the end side, next to the title and the description.
Put Avatar components in an AvatarGroup in the footer: it overlaps them and rings each one in the background color. Add AvatarGroupCount after them for the people you don't show.
Sign in with a free account, open the example and run the install command under Installation. The CLI adds the example's file to your project along with the Card and the other components it uses if you don't have them yet.
Pass size sm on the Card for the compact preset. For your own value, set the --card-spacing variable on the card, which sets the gaps and the insets of every part at once.
The Card is a flex column. Give it a height, such as h-full in a grid, and add mt-auto on CardFooter so the footer stays at the bottom however long the content is.
Yes. Put a link in the title and stretch it over the card with an absolutely positioned pseudo-element, and make the card relative. Avoid wrapping a card that holds other buttons in one link: nested interactive elements confuse keyboard and screen reader users.
shadcn.io's Card plus the components each example uses, such as Button, Field, Input and Avatar, styled with Tailwind CSS and Lucide icons. In React they run on Base UI, React Aria, Ark UI or Radix UI, whichever your project uses; the Vue, Svelte and Solid versions are built on Ark UI.
The Card is a plain container, so accessibility comes from its content: CardTitle is a heading, so keep it in order with the page's other headings, label every field, and give images a meaningful alt or an empty one when they are decorative.
Yes. The Card has no state, so the examples render on the server as they are. Add a client boundary only around the parts that need interaction.
Tailwind CSS v4. The classes are standard utilities and theme tokens such as bg-card and text-muted-foreground, read from your theme's CSS variables.
4.9 out of 5 from 150+ developers
Every card example. One prompt away.
Every card example is free with an account. With Pro, your AI agent installs them from a prompt.
Get Pro























