mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-17 19:21:26 +00:00
feat(components): add SkeletonPlaceholder
This commit is contained in:
parent
a56e45058a
commit
f3e5da73db
6 changed files with 61 additions and 0 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue