Skip to main content

Card

A simple content container with an optional title, used to group related information.

import { Card } from '@jbpark/ui-kit';

<Card title="Card title">A card with an outlined border.</Card>;
Card title
A card with an outlined border — the default variant.
Borderless
The same card without its border, blending into the background.
A card with no title — body content only.

Props

PropTypeDefault
titleReactNode-
variant'outlined' | 'borderless''outlined'
classNames{ title?: string; body?: string }-
classNamestring-
childrenReactNode-

Card also accepts the rest of React.ComponentProps<'div'> (e.g. onClick, style), except title.