primevue-mirror/doc/chip/pt/PTDoc.vue

60 lines
1.6 KiB
Vue
Raw Normal View History

2023-04-21 13:24:46 +00:00
<template>
<DocSectionText v-bind="$attrs"> </DocSectionText>
<div class="card flex justify-content-center">
<Chip
label="Amy Elsner"
image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png"
:pt="{
root: { style: { background: 'linear-gradient(to right, #8e2de2, #4a00e0)', borderRadius: '24px' } },
label: { class: 'text-white' }
}"
/>
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
2023-09-22 12:54:14 +00:00
basic: `
<Chip
2023-04-21 13:24:46 +00:00
label="Amy Elsner"
image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png"
:pt="{
root: { style: { background: 'linear-gradient(to right, #8e2de2, #4a00e0)', borderRadius: '24px' } },
label: { class: 'text-white' }
}"
2023-10-15 09:38:39 +00:00
/>
`,
2023-09-22 12:54:14 +00:00
options: `
<template>
2023-04-21 13:24:46 +00:00
<Chip
label="Amy Elsner"
image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png"
:pt="{
root: { style: { background: 'linear-gradient(to right, #8e2de2, #4a00e0)', borderRadius: '24px' } },
label: { class: 'text-white' }
}"
/>
2023-10-15 09:38:39 +00:00
</template>
`,
2023-09-22 12:54:14 +00:00
composition: `
<template>
2023-04-21 13:24:46 +00:00
<Chip
label="Amy Elsner"
image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png"
:pt="{
root: { style: { background: 'linear-gradient(to right, #8e2de2, #4a00e0)', borderRadius: '24px' } },
label: { class: 'text-white' }
}"
/>
2023-11-01 14:36:59 +00:00
</template>
`
2023-04-21 13:24:46 +00:00
}
};
}
};
</script>