naive-ui/demo/documentation/components/descriptions/enUS/basic.md

24 lines
541 B
Markdown
Raw Normal View History

2019-11-12 15:04:42 +08:00
# Basic
```html
<n-descriptions label-placement="top" title="Description">
2019-11-12 15:04:42 +08:00
<n-descriptions-item>
<template v-slot:label>
Breakfast
</template>
Apple
</n-descriptions-item>
<n-descriptions-item label="Brunch">
Apple
</n-descriptions-item>
<n-descriptions-item label="Lunch">
Apple
</n-descriptions-item>
<n-descriptions-item label="Supper" :span="2">
Two<br>
Apples
</n-descriptions-item>
<n-descriptions-item label="Midnight Snack">
Apple
</n-descriptions-item>
</n-descriptions>
```