Card
A pure CSS surface container — no JS behavior. Card renders an <article>; compose the inside with CardHeader / CardBody / CardText / CardFooter / CardAction instead of hand-writing the .card-* <div>s.
Usage
import { Card, CardBody, CardText } from '@mav-labs-inc/mavkit-react'
<Card raised>
<CardBody>
<CardText variant="title">Card title</CardText>
</CardBody>
</Card>Examples
Basic
Crafting visual hierarchy
Thoughtful use of scale, weight, and spacing.
Raised, interactive card
Hover/press styling via the interactive prop.
Style variants
Outline
A hairline border, no shadow — .card--outline.
Raised
A more pronounced shadow — .card--raised.
Disabled
Dimmed to 42% opacity — .card--disabled.
Props
Card
Renders an <article> and accepts every native <article> attribute in addition to the props below.
CardAction
Button inside .card-footer — deliberately its own class (.card-action, not .btn).
CardText
One component for every .card-body text role.
CardHeader / CardBody / CardFooter
Thin wrappers rendering a <div> with .card-header / .card-body / .card-footer — accept every native <div> attribute, no extra props of their own.
Styling a custom element as a card
import { cardClasses } from '@mav-labs-inc/mavkit-react'
<a href="/posts/1" className={cardClasses({ raised: true, interactive: true })}>
…
</a>