Skip to content

KCard

Integrate information in a card container.

Install

bash
pnpm add @ikun-ui/card
bash
yarn add @ikun-ui/card
bash
npm install @ikun-ui/card

Basic usage

Card includes title, content.

Card is made up of header and body. header is optional, and its content distribution depends on header slot or title attribute.

Simple card

The header part can be omitted.

Shadow

You can define when to show the card shadows

The shadow attribute determines when the card shadows are displayed. It can be always, hover or never.

Card Props

NameTypeDefaultDescription
titlestring-title of the card.
shadowalways | hover | neveralwayswhen to show card shadows.
clsstring''Additional class for
attrsRecord<string, string>{}Additional attributes

Card Slots

NameDescription
headercontent of the header.
defaultcontent of the content.

MIT Licensed