Skip to content

KCard ​

示例 ​

Card Title

Card description text.

Main content goes here with some example text.

Footer content

A small card with just content.

Card container with composable sub-components for structured layouts.

Sub-Components ​

  • KCard — Root card container
  • KCardHeader — Header section with grid layout
  • KCardTitle — Card title (<h3> element)
  • KCardDescription — Muted description text
  • KCardAction — Action area positioned in the top-right corner
  • KCardContent — Main content area
  • KCardFooter — Footer section with muted background and top border

Props (KCard) ​

NameTypeDefaultDescription
size'default' | 'sm''default'Size variant of the card.
theme'auto' | 'day' | 'night''auto'Theme mode. auto follows the current theme; day and night force a specific mode.

Slots ​

NameDescription
defaultCard content. Use sub-components for structured layouts.

Basic Usage ​

Card Title

Card description text.

Main content goes here.
Footer content