cli
cli copied to clipboard
I want to create a template I defined using the nuxi add command.
When you create a component using the nuxi add command, the basic contents are created as follows.
<script lang="ts" setup></script>
<template>
<div>
Component: common/TheHeader
</div>
</template>
<style scoped></style>
But, I would like to create a component with more content.
<script lang="ts" setup>
//example....
const common = useCommon();
const utils = useUtils();
const userInfo = useUserInfo();
</script>
<template>
<div>
Component: common/TheHeader
</div>
</template>
<style scoped></style>
Is there a way to replace the template?