Skip to content

Commit

Permalink
Merge pull request #3089 from nextcloud/fix/empty-content-comments-ex…
Browse files Browse the repository at this point in the history
…ample
  • Loading branch information
skjnldsv authored Aug 22, 2022
2 parents 8df28c8 + bf9dab3 commit 681ebc9
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions src/components/NcEmptyContent/NcEmptyContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,27 @@ Use this component to display a message about an empty content.
Providing an icon, title, and a description is strongly advised.

```
<NcEmptyContent>
No comments
<template #icon>
<Comment />
</template>
<template #desc>No comments in here</template>
</NcEmptyContent>
<template>
<NcEmptyContent>
No comments
<template #icon>
<Comment />
</template>
<template #desc>No comments in here</template>
</NcEmptyContent>
</template>

<script>
import Comment from 'vue-material-design-icons/Comment'
export default {
components: {
Comment,
},
}
</script>
```

```
<template>
<NcEmptyContent>
Expand All @@ -48,16 +61,13 @@ Providing an icon, title, and a description is strongly advised.

<script>
import Airplane from 'vue-material-design-icons/Airplane'
import Comment from 'vue-material-design-icons/Comment'
export default {
components: {
Airplane,
Comment,
}
},
}
</script>

```
</docs>

Expand Down

0 comments on commit 681ebc9

Please sign in to comment.