chore: add description to OptionalWrapper
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Dominik Pschenitschni 2022-11-23 21:23:56 +01:00
parent 65c176d18c
commit de7d004c6e
Signed by: dpschen
GPG Key ID: B257AC0149F43A77
1 changed files with 14 additions and 3 deletions

View File

@ -1,11 +1,22 @@
<!-- https://github.com/vuejs/rfcs/pull/449 -->
<!-- https://github.com/vuejs/rfcs/discussions/448#discussioncomment-2769396= -->
<script lang="ts">
export default { inheritAttrs: false }
</script>
<script setup lang="ts">
defineProps<{ is: any }>()
/**
* This component makes it possible to optionally wrap around another component.
* It's based on these ideas:
*
* - https://github.com/vuejs/rfcs/pull/449
* - https://github.com/vuejs/rfcs/discussions/448#discussioncomment-2769396=
*/
defineProps<{
/**
* If the `is` prop defines a component it will be rendered as a wrapper around the slot content.
* If the `is` prop is undefined there won't be any wrapper.
*/
is: any,
}>()
</script>
<template>