mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-13 07:39:10 +08:00
12bbe3776c
* add list component * fixed the demo syntax * update list snapshots
46 lines
1.2 KiB
Markdown
46 lines
1.2 KiB
Markdown
---
|
|
category: Components
|
|
type: Data Display
|
|
title: List
|
|
cols: 1
|
|
---
|
|
|
|
Simple List.
|
|
|
|
## When To Use
|
|
|
|
A list can be used to display content related to a single subject. The content can consist of multiple elements of varying type and size.
|
|
|
|
## API
|
|
|
|
### List
|
|
|
|
| Property | Description | Type | Default |
|
|
|----------|----------------|----------|--------------|
|
|
| bordered | - | string \| boolean | false |
|
|
| loading | -| boolean | false |
|
|
| itemLayout | - | string | - |
|
|
| showLoadMore | -| boolean | false |
|
|
| loadingMore | - | boolean | false |
|
|
| onMoreClick | -| function | - |
|
|
| pagination | - | boolean \| object | false |
|
|
|
|
### List.Item
|
|
|
|
| Property | Description | Type | Default |
|
|
---------|-------------|------|---------
|
|
| extra | - | string\|ReactNode | - |
|
|
|
|
### List.Item.Meta
|
|
|
|
| Property | Description | Type | Default |
|
|
---------|-------------|------|---------
|
|
| avatar | - | ReactNode | - |
|
|
| title | - | string\|ReactNode | - |
|
|
| description | - | string\|ReactNode | - |
|
|
|
|
### List.Item.Action
|
|
| Property | Description | Type | Default |
|
|
---------|-------------|------|---------
|
|
| actions | - | Array | - |
|