Skip to content

Basic Card

Wadah kartu fleksibel yang mendukung header, footer, banner popup, konten yang dapat digulir, dan konfigurasi warna. Dilengkapi dengan kelas utilitas TailwindCSS.

Skeleton

Slots and Templates

NameDescriptionRequiredNotes
defaultMain content of the cardYesBody content
headerOptional card headerNoRendered only if provided
footerOptional card footerNoRendered only if provided
popupOptional popup banner above cardNoRendered only if provided

Props

PropTypeDefaultDescription
colorString'normal'Body color class. Accepts 'normal', 'sub', or custom Tailwind class.
headerColorString'primary'Header color. Accepts 'red', 'yellow', 'blue', 'green', or custom Tailwind class.
footerColorString'primary'Footer color. Same options as headerColor.
popupColorString'green'Popup banner color. Same options as above.
noPaddingBooleanfalseIf true, removes body padding.
maxHeightStringTailwind class to set max height of the body. Enables vertical scroll if present.
overflowingBooleanfalseIf true, forces overflow-hidden behavior on outer container.
noAnimateBooleanfalseIf true, disables card animations.
customClassStringExtra Tailwind utility classes for the card content container.

Events