2023-02-28 08:29:30 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>A font icon next to the label can be displayed with the <i>icon</i> property.</p>
|
|
|
|
</DocSectionText>
|
|
|
|
<div class="card flex flex-wrap gap-2">
|
|
|
|
<Chip label="Apple" icon="pi pi-apple" />
|
|
|
|
<Chip label="Facebook" icon="pi pi-facebook" />
|
|
|
|
<Chip label="Google" icon="pi pi-google" />
|
|
|
|
<Chip label="Microsoft" icon="pi pi-microsoft" removable />
|
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
|
|
|
<Chip label="Apple" icon="pi pi-apple" />
|
2023-02-28 08:29:30 +00:00
|
|
|
<Chip label="Facebook" icon="pi pi-facebook" />
|
|
|
|
<Chip label="Google" icon="pi pi-google" />
|
|
|
|
<Chip label="Microsoft" icon="pi pi-microsoft" removable />`,
|
2023-09-22 12:54:14 +00:00
|
|
|
options: `
|
|
|
|
<template>
|
2023-02-28 08:29:30 +00:00
|
|
|
<div class="card flex flex-wrap gap-2">
|
|
|
|
<Chip label="Apple" icon="pi pi-apple" />
|
|
|
|
<Chip label="Facebook" icon="pi pi-facebook" />
|
|
|
|
<Chip label="Google" icon="pi pi-google" />
|
|
|
|
<Chip label="Microsoft" icon="pi pi-microsoft" removable />
|
|
|
|
</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 flex flex-wrap gap-2">
|
|
|
|
<Chip label="Apple" icon="pi pi-apple" />
|
|
|
|
<Chip label="Facebook" icon="pi pi-facebook" />
|
|
|
|
<Chip label="Google" icon="pi pi-google" />
|
|
|
|
<Chip label="Microsoft" icon="pi pi-microsoft" removable />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script setup>
|
|
|
|
|
|
|
|
<\/script>`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|