Skip to main content
Mantı UI logoMantı UIv0.12.1
Studio

Card

Compose Card with Card.Header, Card.Title, Card.Description, Card.Body, and Card.Footer.

import { Badge, Button, Card } from '@manti-ui/react';

export default function CardBasic() {
  return (
    <Card className="w-full max-w-[calc(var(--manti-space-16)*5)]">
      <Card.Header>
        <div className="flex justify-between items-center">
          <Card.Title>Kayseri Mantısı</Card.Title>
          <Badge variant="primary" dot>
            Fresh
          </Badge>
        </div>
        <Card.Description>
          Tiny dumplings, garlic yogurt, paprika butter.
        </Card.Description>
      </Card.Header>
      <Card.Body>
        Hand-folded four-corner parcels, simmered until tender and finished with
        a smooth drizzle of warm chili oil.
      </Card.Body>
      <Card.Footer>
        <Button size="sm">Cook now</Button>
        <Button size="sm" variant="tertiary">
          Save
        </Button>
      </Card.Footer>
    </Card>
  );
}

Elevated and interactive

elevated strengthens the surface tint. interactive adds hover and focus movement; pair it with real link or button semantics.

Default

A bordered resting surface.

Elevated

Raised with a stronger surface tint.

Interactive

Lifts smoothly on hover and focus.

API

PropTypeDefaultDescription
elevatedbooleanfalseStrengthen the card surface tint.
interactivebooleanfalseApply the smooth hover lift. Pair with real semantics.
asElementType'div'Polymorphic semantic root such as article, aside, or li.

Styling

Anatomy

PartSelectorDescription
root[data-scope="card"][data-part="root"]The signature pillowy surface.
header[data-scope="card"][data-part="header"]Card.Header — title + description region.
title[data-scope="card"][data-part="title"]Card.Title — the heading.
description[data-scope="card"][data-part="description"]Card.Description — supporting copy.
body[data-scope="card"][data-part="body"]Card.Body — main content.
footer[data-scope="card"][data-part="footer"]Card.Footer — actions / meta.

Tokens

TokenControls
--manti-card-radiusradius
--manti-card-padding-xpadding x
--manti-card-padding-ypadding y

Last updated

Built end-to-end with Manti UI components and design tokens. Manti UI is a framework-agnostic design system on Zag.js.

GitHub