Skip to content
Look

Shared with the landing page. Theme is the select beside this menu.

CardHeader

Open .md
Live preview

Loading example…

CardHeader is part of the Containers set, imported from @jcsoftdev/ui/containers.

import { CardHeader } from "@jcsoftdev/ui/containers";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/containers/card.

<CardHeader>
<>
<CardHeader>
<h3 className="m-0 font-semibold text-[14px]">Resumen del día</h3>
</CardHeader>
<CardBody>
<p className="m-0 text-ink-2 text-[13px]">
12 citas atendidas, S/ 840 en ingresos y 2 clientes nuevos.
</p>
</CardBody>
<CardFooter>Actualizado hace 5 min</CardFooter>
</>
</CardHeader>
Prop Type Default Description
icon ReactNode Decorative icon before the title; hidden from screen readers.
title ReactNode
action ReactNode End slot, e.g. a link or an icon button.

* marks a required prop.

It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).

packages/ui/src/containers/card/card.tsx