Cards

Card can be used to container a groups of related content.

Basic

Basic usage of Card

Header & Footer

Card can set header & footer via header & footer props.

Header & Footer Border

Header & footer seperator can disabled by setting headerBorder & footerBorder to false.

Borderless

Display Card without border (with shadow-sm).

Extra Class

Extra class can be apply via bodyClass, headerClass & footerClass to correspond section.

Clickable

Set click prop to true to make cursor become pointer.

Media

API

Card
PropDescriptionTypeDefault
headerCard header config{ content?: string | ReactNode, className?: string, bordered?: boolean, extra?: string | ReactNode }-
footerCard footer config{ content?: string | ReactNode, className?: string, bordered?: boolean }-
borderedDisplay Card with border (without shadow-sm)booleanfalse
clickableMake cursor become pointer upon hoverbooleanfalse
bodyClassApply class to card bodystring-
onClickCallback when Card is clicked(e: MouseEvent) => void-