107 lines
3.8 KiB
Vue
107 lines
3.8 KiB
Vue
<template>
|
|
<DocSectionText v-bind="$attrs">
|
|
<p>A letter Avatar is defined with the <i>label</i> property.</p>
|
|
</DocSectionText>
|
|
<div class="card">
|
|
<div class="flex flex-wrap gap-8">
|
|
<div class="flex-auto">
|
|
<h5>Label</h5>
|
|
<Avatar label="P" class="mr-2" size="xlarge" />
|
|
<Avatar label="V" class="mr-2" size="large" style="background-color: #ece9fc; color: #2a1261" />
|
|
<Avatar label="U" class="mr-2" style="background-color: #dee9fc; color: #1a2551" />
|
|
</div>
|
|
|
|
<div class="flex-auto">
|
|
<h5>Circle</h5>
|
|
<Avatar label="P" class="mr-2" size="xlarge" shape="circle" />
|
|
<Avatar label="V" class="mr-2" size="large" style="background-color: #ece9fc; color: #2a1261" shape="circle" />
|
|
<Avatar label="U" class="mr-2" style="background-color: #dee9fc; color: #1a2551" shape="circle" />
|
|
</div>
|
|
|
|
<div class="flex-auto">
|
|
<h5>Badge</h5>
|
|
<Avatar v-badge.danger="4" label="U" size="xlarge" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<DocSectionCode :code="code" />
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
code: {
|
|
basic: `
|
|
<Avatar label="P" class="mr-2" size="xlarge" />
|
|
<Avatar label="V" class="mr-2" size="large" style="background-color: #ece9fc; color: #2a1261" />
|
|
<Avatar label="U" class="mr-2" style="background-color: #dee9fc; color: #1a2551" />
|
|
|
|
<Avatar label="P" class="mr-2" size="xlarge" shape="circle" />
|
|
<Avatar label="V" class="mr-2" size="large" style="background-color: #ece9fc; color: #2a1261" shape="circle" />
|
|
<Avatar label="U" class="mr-2" style="background-color: #dee9fc; color: #1a2551" shape="circle" />
|
|
|
|
<Avatar v-badge.danger="4" label="U" size="xlarge" />
|
|
`,
|
|
options: `
|
|
<template>
|
|
<div class="flex flex-wrap gap-8">
|
|
<div class="flex-auto">
|
|
<h5>Label</h5>
|
|
<Avatar label="P" class="mr-2" size="xlarge" />
|
|
<Avatar label="V" class="mr-2" size="large" style="background-color: #ece9fc; color: #2a1261" />
|
|
<Avatar label="U" class="mr-2" style="background-color: #dee9fc; color: #1a2551" />
|
|
</div>
|
|
|
|
<div class="flex-auto">
|
|
<h5>Circle</h5>
|
|
<Avatar label="P" class="mr-2" size="xlarge" shape="circle" />
|
|
<Avatar label="V" class="mr-2" size="large" style="background-color: #ece9fc; color: #2a1261" shape="circle" />
|
|
<Avatar label="U" class="mr-2" style="background-color: #dee9fc; color: #1a2551" shape="circle" />
|
|
</div>
|
|
|
|
<div class="flex-auto">
|
|
<h5>Badge</h5>
|
|
<Avatar v-badge.danger="4" label="U" size="xlarge" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<\/script>
|
|
`,
|
|
composition: `
|
|
<template>
|
|
<div class="flex flex-wrap gap-8">
|
|
<div class="flex-auto">
|
|
<h5>Label</h5>
|
|
<Avatar label="P" class="mr-2" size="xlarge" />
|
|
<Avatar label="V" class="mr-2" size="large" style="background-color: #ece9fc; color: #2a1261" />
|
|
<Avatar label="U" class="mr-2" style="background-color: #dee9fc; color: #1a2551" />
|
|
</div>
|
|
|
|
<div class="flex-auto">
|
|
<h5>Circle</h5>
|
|
<Avatar label="P" class="mr-2" size="xlarge" shape="circle" />
|
|
<Avatar label="V" class="mr-2" size="large" style="background-color: #ece9fc; color: #2a1261" shape="circle" />
|
|
<Avatar label="U" class="mr-2" style="background-color: #dee9fc; color: #1a2551" shape="circle" />
|
|
</div>
|
|
|
|
<div class="flex-auto">
|
|
<h5>Badge</h5>
|
|
<Avatar v-badge.danger="4" label="U" size="xlarge" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
|
|
<\/script>
|
|
`
|
|
}
|
|
};
|
|
}
|
|
};
|
|
</script>
|