Skip to main content
  1. Docs
  2. Components
  3. 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
api-key-card.tsx
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.

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

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.

05

A table inside

A Table as the body's direct child runs edge to edge.

Recent sign-ins

NameMethodWhen
Priya SharmaPasskey2 minutes ago
Rahul VermaPasskey18 minutes ago
Ananya IyerAuthenticator1 hour ago

06

Untitled

Without a title it's a plain surface, not a section.

Passkeys are on for every admin.
Next — CardUsage