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
Name | Type | Default | Description |
---|---|---|---|
image | string | '' | image URL of empty. |
imageSize | number | - | image size (width) of empty. |
emptyDescription | string | 'No Data' | description of empty. |
cls | string | '' | Additional class for component |
attrs | Record<string, string> | {} | Additional attributes |
Empty Slots
Name | Description |
---|---|
default | Customize default content |
image | Customize image |
description | Customize description content |