mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 18:13:54 +00:00
18cf0ba865
Co-authored-by: Sylvain Marroufin <marroufin.sylvain@gmail.com> Co-authored-by: Pooya Parsa <pyapar@gmail.com>
19 lines
307 B
Vue
19 lines
307 B
Vue
<template>
|
|
<Component :is="tag" class="relative w-full d-container-content">
|
|
<slot />
|
|
</Component>
|
|
</template>
|
|
|
|
<script>
|
|
import { defineComponent } from '@nuxtjs/composition-api'
|
|
|
|
export default defineComponent({
|
|
props: {
|
|
tag: {
|
|
type: String,
|
|
default: 'div'
|
|
}
|
|
}
|
|
})
|
|
</script>
|