30 lines
925 B
Vue
30 lines
925 B
Vue
|
<template>
|
||
|
<DocSectionText v-bind="$attrs">
|
||
|
<p>Size of an icon is controlled with the font-size property of the element.</p>
|
||
|
</DocSectionText>
|
||
|
<div class="card flex justify-center items-center gap-4">
|
||
|
<i class="pi pi-check" style="font-size: 1rem"></i>
|
||
|
<i class="pi pi-times" style="font-size: 1.5rem"></i>
|
||
|
<i class="pi pi-search" style="font-size: 2rem"></i>
|
||
|
<i class="pi pi-user" style="font-size: 2.5rem"></i>
|
||
|
</div>
|
||
|
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
code: {
|
||
|
basic: `
|
||
|
<i class="pi pi-check" style="font-size: 1rem"></i>
|
||
|
<i class="pi pi-times" style="font-size: 1.5rem"></i>
|
||
|
<i class="pi pi-search" style="font-size: 2rem"></i>
|
||
|
<i class="pi pi-user" style="font-size: 2.5rem"></i>
|
||
|
`
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
};
|
||
|
</script>
|