Skip to Content
Archi-ui 1.0.25 is released 🎉

Card

Cards contain content and actions about a single subject.

Introduction

Cards are surfaces that display content and actions on a single topic. The Archi-UI Card compenent includes several complementary utility components to handle various use cases:

  • Card: a surface-level container for grouping related compenents.
  • Card Content: the wrapper for the card content.
  • Card Header: an optional wrapper for the Card header.
  • Card Actions: an optional wrapper that groups a set of buttons.

Basic Card

R
Lorem ipsum dolor sit amet
June 11, 2025

Lorem ipsum dolor sit amet consectetur adipisicing elit. At voluptatem officia quidem fuga quis ipsa, atque cum tenetur adipisci quisquam, nisi dignissimos minus, voluptates explicabo ex. Earum consequatur atque amet.

Usage

import React from 'react'; import { Avatar, Button, Card, CardActions, CardContent, CardHeader, IconButton, Typography } from 'archi-ui' import { EllipsisVertical } from 'lucide-react'
<Card> <CardHeader title='Lorem ipsum dolor sit amet' subheader='June 11, 2025' avatar={<Avatar className='bg-warning'>R</Avatar>} action={ <IconButton> <EllipsisVertical size={16} /> </IconButton> } /> <CardContent> <Typography variant='body1'>Lorem ipsum dolor sit amet consectetur adipisicing elit. At voluptatem officia quidem fuga quis ipsa, atque cum tenetur adipisci quisquam, nisi dignissimos minus, voluptates explicabo ex. Earum consequatur atque amet.</Typography> </CardContent> <CardActions> <Button>Learn more</Button> <Button>Share</Button> </CardActions> </Card>

Variant

The Card comes with two variants: outlined, elevation.

Outlined

Lorem ipsum dolor sit amet consectetur adipisicing elit. At voluptatem officia quidem fuga quis ipsa, atque cum tenetur adipisci quisquam, nisi dignissimos minus, voluptates explicabo ex. Earum consequatur atque amet.

Elevation

Lorem ipsum dolor sit amet consectetur adipisicing elit. At voluptatem officia quidem fuga quis ipsa, atque cum tenetur adipisci quisquam, nisi dignissimos minus, voluptates explicabo ex. Earum consequatur atque amet.

Examples

R
Lorem ipsum dolor sit amet
June 11, 2025
Caterpillar

Lorem ipsum, dolor sit amet consectetur adipisicing elit. Ratione fugiat voluptas rem quasi similique tempora? Lorem ipsum dolor sit amet, consectetur adipisicing elit.

Login card

Invalid email Id

Forget password?

UI Control Card

Supplemental actions within the card are explicitly called out using icons, text, and UI controls, typically placed at the bottom of the card.

Here’s an example of a media control card.

Live From Space

Mac Miller
Live from space album cover

Card API

API reference docs for the React Card component.

Props

NameTypeDefaultDescription
childrennode-The content of the component.
classNamestring-Override or extend the styles applied to the component.
raisedboolfalseIf true, the card will use raised styling.

CardActions API

API reference docs for the React CardActions component.

Props

NameTypeDefaultDescription
childrennode-The content of the component.
classNamestring-Override or extend the styles applied to the component.
disableSpacingboolfalseIf true, the actions do not have additional margin.

CardContent API

API reference docs for the React CardContent component.

Props

NameTypeDefaultDescription
childrennode-The content of the component.
classNamestring-Override or extend the styles applied to the component.

CardHeader API

API reference docs for the React CardHeader component.

Props

NameTypeDefaultDescription
actionnode-The action to display in the card header.
classNamestring-Override or extend the styles applied to the component.
avatarnode-The Avatar element to display.
titlenode-The content of the component.
subheadernode-The content of the component.
titleTypographyPropsobject-The props will be forwarded to the title.
subheaderTypographyPropsobject-The props will be forwarded to the subheader.

CardTitle API

API reference docs for the React CardTitle component.

Props

NameTypeDefaultDescription
childrennode-The content of the component.
classNamestring-Override or extend the styles applied to the component.
align'center' | 'inherit' | 'justify' | 'left' | 'right''inherit'Set the text-align on the component.
componentelementType-The component used for the root node. Either a string to use a HTML element or a component.
gutterBottomboolfalseIf true, the text will have a bottom margin.
noWrapboolfalseIf true, the text will not wrap, but instead will truncate with a text overflow ellipsis. Note that text overflow can only happen with block or inline-block level elements(the element needs to have a width in order to overflow).
paragraphboolfalseIf true, the element will be a paragraph element.
variant'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'inherit' | 'caption'’body1’Applies the theme typography styles.
Last updated on