Actions & display
Card
The raised surface for grouped content, with header, body and footer slots and six palette tints.
Card
Invoice #1042
Acme Ltd · due in 12 days
₹4,200 for design work in November.
<article class="og-card" style="max-width: 22rem">
<header class="og-card__header">
<h3 class="og-card__title">Invoice #1042</h3>
<p class="og-card__description">Acme Ltd · due in 12 days</p>
</header>
<div class="og-card__body">₹4,200 for design work in November.</div>
<footer class="og-card__footer">
<span class="og-badge og-badge--warning">Pending</span>
<button class="og-button og-button--primary og-button--sm">Send</button>
</footer>
</article>Tints
Roadmap
12 open items
Revenue
Up 8% this month
<article class="og-card og-card--tint-1" style="max-width: 14rem"><h3 class="og-card__title">Roadmap</h3><p class="og-card__description">12 open items</p></article>
<article class="og-card og-card--tint-3" style="max-width: 14rem"><h3 class="og-card__title">Revenue</h3><p class="og-card__description">Up 8% this month</p></article>React
import { Card, Button } from '@og-ui/react';
<Card
title="Invoice #1042"
description="Acme Ltd · due in 12 days"
footer={<Button variant="primary" size="sm">Send</Button>}
>
₹4,200 for design work in November.
</Card>In every theme
Clean SaaS
Invoice #1042
Acme Ltd · due in 12 days
₹4,200 for design work in November.
Glassmorphism 2.0
Invoice #1042
Acme Ltd · due in 12 days
₹4,200 for design work in November.
Liquid glass
Invoice #1042
Acme Ltd · due in 12 days
₹4,200 for design work in November.
Neumorphism / Soft UI
Invoice #1042
Acme Ltd · due in 12 days
₹4,200 for design work in November.
Claymorphism
Invoice #1042
Acme Ltd · due in 12 days
₹4,200 for design work in November.
Neubrutalism
Invoice #1042
Acme Ltd · due in 12 days
₹4,200 for design work in November.
Aurora / mesh gradient
Invoice #1042
Acme Ltd · due in 12 days
₹4,200 for design work in November.
Keyboard and screen readers
- Not focusable itself; Tab moves through the controls inside.
Install
npx @og-ui/cli add card
npx @og-ui/cli add card --react # with the React component