2023-12-26 18:28:43 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
2024-04-01 09:54:05 +00:00
|
|
|
<p>
|
2024-10-29 09:24:51 +00:00
|
|
|
Verify your setup by adding a component such as <NuxtLink to="/button">Button</NuxtLink>. Each component can be imported and registered individually so that you only include what you use for bundle optimization. Import path is available
|
2024-10-27 10:54:37 +00:00
|
|
|
in the documentation of the corresponding component.
|
2024-04-01 09:54:05 +00:00
|
|
|
</p>
|
2023-12-26 18:28:43 +00:00
|
|
|
</DocSectionText>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="card flex justify-center">
|
2024-10-27 10:54:37 +00:00
|
|
|
<Button label="Verify" />
|
2023-12-26 18:28:43 +00:00
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" importCode />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code: {
|
|
|
|
basic: `
|
|
|
|
import Button from "primevue/button"
|
|
|
|
|
|
|
|
const app = createApp(App);
|
|
|
|
app.component('Button', Button);
|
|
|
|
`,
|
|
|
|
options: `
|
|
|
|
<template>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="card flex justify-center">
|
2024-10-27 10:54:37 +00:00
|
|
|
<Button label="Verify" />
|
2023-12-26 18:28:43 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<\/script>
|
|
|
|
`,
|
|
|
|
composition: `
|
|
|
|
<template>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="card flex justify-center">
|
2024-10-27 10:54:37 +00:00
|
|
|
<Button label="Verify" />
|
2023-12-26 18:28:43 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
<\/script>
|
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|