Skip to content

KEmpty

Placeholder hints for empty states.

Install

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

Basic usage

Custom image

image prop can set image URL.

Image size

image-size prop can control image size.

Bottom content

Use the default slot to insert content at the bottom.

Empty Props

NameTypeDefaultDescription
imagestring''image URL of empty.
imageSizenumber-image size (width) of empty.
emptyDescriptionstring'No Data'description of empty.
clsstring''Additional class for component
attrsRecord<string, string>{}Additional attributes

Empty Slots

NameDescription
defaultCustomize default content
imageCustomize image
descriptionCustomize description content

MIT Licensed