2
0
mirror of https://github.com/tusen-ai/naive-ui.git synced 2025-02-17 13:20:52 +08:00
naive-ui/demo/documentation/components/card/enUS/cover.demo.md

15 lines
258 B
Markdown
Raw Normal View History

2019-11-18 11:34:18 +08:00
# Cover
Card can have a cover.
```html
<n-card title="Card with Cover">
<template v-slot:cover>
2020-08-02 00:35:14 +08:00
<img src="https://07akioni.oss-cn-beijing.aliyuncs.com/07akioni.jpeg">
2019-11-18 11:34:18 +08:00
</template>
Card Content
</n-card>
```
```css
.n-card {
max-width: 300px;
}
```