element-plus/docs/en-US/component/empty.md
jeremywu 8fdf558b04
fix(docs): adding title for components (#4025)
- Remove `type` field.
- Add `title` field
2021-10-25 15:21:08 +08:00

63 lines
1.0 KiB
Markdown

---
title: Empty
lang: en-US
---
# Empty
Placeholder hints for empty states.
## Basic usage
:::demo
empty/basic-usage
:::
## Custom image
Use `image` prop to set image URL.
:::demo
empty/custom-image
:::
## Image size
Use `image-size` prop to control image size.
:::demo
empty/image-size
:::
## Bottom content
Use the default slot to insert content at the bottom.
:::demo
empty/bottom-content
:::
## Empty Attributes
| Attribute | Description | Type | Acceptable Value | Default |
| ----------- | ------------------ | ------ | ---------------- | ------- |
| image | image URL | string | — | — |
| image-size | image size (width) | number | — | — |
| description | description | string | — | — |
## Empty Slots
| Name | Description |
| ----------- | --------------------- |
| default | Custom bottom content |
| image | Custom image |
| description | Custom description |