mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
docs(skeleton-placeholder): improve docs
This commit is contained in:
parent
6f1c8c6b63
commit
1ebfad0dd6
1 changed files with 6 additions and 0 deletions
|
@ -3,10 +3,16 @@
|
|||
import Preview from "../../components/Preview.svelte";
|
||||
</script>
|
||||
|
||||
`SkeletonPlaceholder` provides a loading state placeholder that can be used to indicate content is being loaded. It supports custom sizing and forwards mouse events for interactive loading states.
|
||||
|
||||
## Default
|
||||
|
||||
Create a basic skeleton placeholder with default styling.
|
||||
|
||||
<SkeletonPlaceholder />
|
||||
|
||||
## Custom size
|
||||
|
||||
Specify custom dimensions using the `style` prop.
|
||||
|
||||
<SkeletonPlaceholder style="height: 12rem; width: 12rem;" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue