feat(components): add SkeletonPlaceholder

This commit is contained in:
Eric Liu 2019-12-15 14:42:23 -08:00
commit f3e5da73db
6 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,27 @@
<script>
import Layout from '../../internal/ui/Layout.svelte';
import SkeletonPlaceholder from './SkeletonPlaceholder.svelte';
</script>
<style>
:global(.my--skeleton__placeholder--small) {
height: 100px;
width: 100px;
}
:global(.my--skeleton__placeholder--medium) {
height: 150px;
width: 150px;
}
:global(.my--skeleton__placeholder--large) {
height: 250px;
width: 250px;
}
</style>
<Layout>
<div style="height: 250px; width: 250px;">
<SkeletonPlaceholder {...$$props} />
</div>
</Layout>