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

54 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-08-16 13:58:31 +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-08-16 13:58:31 +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' }
}"
/>
</template>`,
2023-08-16 13:58:31 +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' }
}"
/>
</template>`
}
};
}
};
</script>