primevue-mirror/doc/chip/TemplateDoc.vue

55 lines
1.4 KiB
Vue
Raw Normal View History

2023-02-28 08:29:30 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>The default slot allows displaying custom content inside a chip.</p>
</DocSectionText>
<div class="card">
<Chip class="pl-0 pr-3">
<span class="bg-primary border-circle w-2rem h-2rem flex align-items-center justify-content-center">P</span>
<span class="ml-2 font-medium">PRIME</span>
</Chip>
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
2023-09-22 12:54:14 +00:00
basic: `
<Chip class="pl-0 pr-3">
2023-02-28 08:29:30 +00:00
<span class="bg-primary border-circle w-2rem h-2rem flex align-items-center justify-content-center">P</span>
<span class="ml-2 font-medium">PRIME</span>
</Chip>`,
2023-09-22 12:54:14 +00:00
options: `
<template>
2023-02-28 08:29:30 +00:00
<div class="card">
<Chip class="pl-0 pr-3">
<span class="bg-primary border-circle w-2rem h-2rem flex align-items-center justify-content-center">P</span>
<span class="ml-2 font-medium">PRIME</span>
</Chip>
</div>
</template>
<script>
<\/script>`,
2023-09-22 12:54:14 +00:00
composition: `
<template>
2023-02-28 08:29:30 +00:00
<div class="card">
<Chip class="pl-0 pr-3">
<span class="bg-primary border-circle w-2rem h-2rem flex align-items-center justify-content-center">P</span>
<span class="ml-2 font-medium">PRIME</span>
</Chip>
</div>
</template>
<script setup>
<\/script>`
}
};
}
};
</script>