- Docs
- Components
- Layout
Card
Related content on a page: a raised, ruled surface with no shadow. A titled card is a section named by its title.
- Import
- @qeetrix/react
- Status
- StableSince 0.0.2
- Renders
<section>Server-rendered- Tested
- WCAG 2.2 AAaxe on every pull request
01
Playground
Every prop, live, and the code it takes.
Create API key
Name the key so you can find it in the audit log.
Level
Variant
Tone
import { Button, Card } from "@qeetrix/react";
<Card
title="Create API key"
level={2}
footer={<Button>Create key</Button>}
>
Name the key so you can find it in the audit log.
</Card>02
A titled card
title with its level: a section named by it. A description under it, actions at the header's end, a ruled footer.
Create API key
Machine-to-machine access to Acme Pvt Ltd.
Name the key so you can find it in the audit log.
<Card
title="Create API key"
level={2}
description="Machine-to-machine access to Acme Pvt Ltd."
actions={<Button variant="ghost">View docs</Button>}
footer={
<>
<Button variant="ghost">Cancel</Button>
<Button>Create key</Button>
</>
}
>
Name the key so you can find it in the audit log.
</Card>03
Subdued
variant="subdued": the sunken surface, for a secondary panel beside or below the main content.
Usage this month
48,210 sign-ins · 72% with a passkey
<Card variant="subdued" title="Usage this month" level={2}>48,210 sign-ins · 72% with a passkey</Card>04
A danger zone
tone="danger": the border and title in danger, for settings that delete. The title still says what it is.
Delete organisation
Every user, application and key goes with it. This can't be undone.
<Card tone="danger" title="Delete organisation" level={2} footer={<Button tone="danger">Delete Acme Pvt Ltd</Button>}>
Every user, application and key goes with it.
</Card>05
A table inside
A Table as the body's direct child runs edge to edge.
Recent sign-ins
| Name | Method | When |
|---|---|---|
| Priya Sharma | Passkey | 2 minutes ago |
| Rahul Verma | Passkey | 18 minutes ago |
| Ananya Iyer | Authenticator | 1 hour ago |
<Card title="Recent sign-ins" level={2}>
<Table label="Recent sign-ins" … />
</Card>06
Untitled
Without a title it's a plain surface, not a section.
Passkeys are on for every admin.
<Card>Passkeys are on for every admin.</Card>