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
Preview
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.
Preview
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
Preview

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
Preview
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.
Preview
Live From Space
Mac Miller

Card API
API reference docs for the React Card component.
Props
Name | Type | Default | Description |
---|---|---|---|
children | node | - | The content of the component. |
className | string | - | Override or extend the styles applied to the component. |
raised | bool | false | If true , the card will use raised styling. |
CardActions API
API reference docs for the React CardActions component.
Props
Name | Type | Default | Description |
---|---|---|---|
children | node | - | The content of the component. |
className | string | - | Override or extend the styles applied to the component. |
disableSpacing | bool | false | If true , the actions do not have additional margin. |
CardContent API
API reference docs for the React CardContent component.
Props
Name | Type | Default | Description |
---|---|---|---|
children | node | - | The content of the component. |
className | string | - | Override or extend the styles applied to the component. |
CardHeader API
API reference docs for the React CardHeader component.
Props
Name | Type | Default | Description |
---|---|---|---|
action | node | - | The action to display in the card header. |
className | string | - | Override or extend the styles applied to the component. |
avatar | node | - | The Avatar element to display. |
title | node | - | The content of the component. |
subheader | node | - | The content of the component. |
titleTypographyProps | object | - | The props will be forwarded to the title. |
subheaderTypographyProps | object | - | The props will be forwarded to the subheader. |
CardTitle API
API reference docs for the React CardTitle component.
Props
Name | Type | Default | Description |
---|---|---|---|
children | node | - | The content of the component. |
className | string | - | Override or extend the styles applied to the component. |
align | 'center' | 'inherit' | 'justify' | 'left' | 'right' | 'inherit' | Set the text-align on the component. |
component | elementType | - | The component used for the root node. Either a string to use a HTML element or a component. |
gutterBottom | bool | false | If true, the text will have a bottom margin. |
noWrap | bool | false | If 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). |
paragraph | bool | false | If 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. |