100 lines
3.5 KiB
Vue
100 lines
3.5 KiB
Vue
<template>
|
|
<DocSectionText v-bind="$attrs">
|
|
<p>Sample Card implementation using different Skeleton components and PrimeFlex CSS utilities.</p>
|
|
</DocSectionText>
|
|
<div class="card">
|
|
<div class="rounded border border-surface-200 dark:border-surface-700 p-6 bg-surface-0 dark:bg-surface-900">
|
|
<div class="flex mb-4">
|
|
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
|
|
<div>
|
|
<Skeleton width="10rem" class="mb-2"></Skeleton>
|
|
<Skeleton width="5rem" class="mb-2"></Skeleton>
|
|
<Skeleton height=".5rem"></Skeleton>
|
|
</div>
|
|
</div>
|
|
<Skeleton width="100%" height="150px"></Skeleton>
|
|
<div class="flex justify-between mt-4">
|
|
<Skeleton width="4rem" height="2rem"></Skeleton>
|
|
<Skeleton width="4rem" height="2rem"></Skeleton>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<DocSectionCode :code="code" />
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
code: {
|
|
basic: `
|
|
<div class="rounded border border-surface-200 dark:border-surface-700 p-6 bg-surface-0 dark:bg-surface-900">
|
|
<div class="flex mb-4">
|
|
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
|
|
<div>
|
|
<Skeleton width="10rem" class="mb-2"></Skeleton>
|
|
<Skeleton width="5rem" class="mb-2"></Skeleton>
|
|
<Skeleton height=".5rem"></Skeleton>
|
|
</div>
|
|
</div>
|
|
<Skeleton width="100%" height="150px"></Skeleton>
|
|
<div class="flex justify-between mt-4">
|
|
<Skeleton width="4rem" height="2rem"></Skeleton>
|
|
<Skeleton width="4rem" height="2rem"></Skeleton>
|
|
</div>
|
|
</div>
|
|
`,
|
|
options: `
|
|
<template>
|
|
<div class="card">
|
|
<div class="rounded border border-surface-200 dark:border-surface-700 p-6 bg-surface-0 dark:bg-surface-900">
|
|
<div class="flex mb-4">
|
|
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
|
|
<div>
|
|
<Skeleton width="10rem" class="mb-2"></Skeleton>
|
|
<Skeleton width="5rem" class="mb-2"></Skeleton>
|
|
<Skeleton height=".5rem"></Skeleton>
|
|
</div>
|
|
</div>
|
|
<Skeleton width="100%" height="150px"></Skeleton>
|
|
<div class="flex justify-between mt-4">
|
|
<Skeleton width="4rem" height="2rem"></Skeleton>
|
|
<Skeleton width="4rem" height="2rem"></Skeleton>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
<\/script>
|
|
`,
|
|
composition: `
|
|
<template>
|
|
<div class="card">
|
|
<div class="rounded border border-surface-200 dark:border-surface-700 p-6 bg-surface-0 dark:bg-surface-900">
|
|
<div class="flex mb-4">
|
|
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
|
|
<div>
|
|
<Skeleton width="10rem" class="mb-2"></Skeleton>
|
|
<Skeleton width="5rem" class="mb-2"></Skeleton>
|
|
<Skeleton height=".5rem"></Skeleton>
|
|
</div>
|
|
</div>
|
|
<Skeleton width="100%" height="150px"></Skeleton>
|
|
<div class="flex justify-between mt-4">
|
|
<Skeleton width="4rem" height="2rem"></Skeleton>
|
|
<Skeleton width="4rem" height="2rem"></Skeleton>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
<\/script>
|
|
`
|
|
}
|
|
};
|
|
}
|
|
};
|
|
</script>
|