Card
Containers

Card

Bordered surface with standard padding for panels. Pair with CardHeader and CardBody for structured content.

Card Props

CardProps props
PropTypeDefaultDescription
fixedboolean—Sets flex:none so the card sizes to content inside a flex column.
childrenReactNode—Card contents.

CardHeader Props

CardHeaderProps props
PropTypeDefaultDescription
childrenReactNode—Header title content.
subReactNode—Dim sub-label shown after the title.
rightReactNode—Right-aligned slot for actions, links, or meta.

CardBody Props

CardBody extends HTMLAttributes<HTMLDivElement> with no custom props.

Examples

Basic card with header and body

Card

With sub and right actions

Card with sub and right
ImportTSX
import { Card, CardHeader, CardBody } from "@solarius/onset";
import type {
  CardProps,
  CardHeaderProps,
  CardBodyProps,
} from "@solarius/onset";