Skeleton
Reusable skeleton component.
Usage
Components are auto-discovered. Use the component directly in any .wrn view:
<Skeleton
height="4"
rounded="lg"
/>Legacy mount name: data-component="Skeleton".
Props and attributes
| Prop | Type | Requirement | Default |
|---|---|---|---|
height | string | Optional | "4" |
rounded | string | Optional | "lg" |
className | string | Optional | "" |
Slots
This component does not declare a slot.
Events
This component does not declare a custom event.
Source contract
Installed source: components/Skeleton.wrn
component Skeleton {
props {
height = "4"
rounded = "lg"
className = ""
}
view {
<div aria-hidden="true" class="animate-pulse bg-slate-200 dark:bg-slate-800 h-{height} rounded-{rounded} {className}">
</div>
}
}