GitHubnpm

Accent theme

Base radius

GitHubnpm

Accent theme

Base radius

Colour scheme

Docs menu

Guides


Primitives
Forms
Layout
Feedback
Overlays
Navigation
Data Display
AI

Card

Defaults to a plain <div>, a card is usually just a visual grouping. Set as="article" when the content is genuinely self-contained and could be syndicated on its own (a blog post preview, a product card), that's what <article>actually means. This is the one component in Kernel without a single obvious native anchor.

Create an account

Start your free 7-day trial. No credit card required.


or

Playground

Toggle every adjustable prop and watch the component — and the code — update live.

Create an account

Start your free 7-day trial. No credit card required.


or
Unstyled

Same component — Kernel look stripped. See Platforms.

as
Usage
<Card>
  <CardHeader>
    <Avatar src="https://api.dicebear.com/9.x/avataaars/svg?seed=Kernel" alt="" fallback="🙂" />
    <CardTitle>Create an account</CardTitle>
    <CardDescription>Start your free 7-day trial. No credit card required.</CardDescription>
  </CardHeader>
  <CardContent>
    <Button variant="primary">Get started</Button>
    <Separator />
    <Button variant="secondary">Continue with email</Button>
  </CardContent>
</Card>

Parts

Props for Card.
ComponentNotes
Cardas: "div" | "article" | "section", defaults to "div"
CardHeader
CardTitlelevel: 2–6, defaults to 3 (an <h3>)
CardDescriptionRenders a <p>
CardContent
CardFooter