release: WRNexusJS 0.3.5
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
component Skeleton {
|
||||
props {
|
||||
height = "4"
|
||||
rounded = "lg"
|
||||
className = ""
|
||||
color = "primary"
|
||||
label = "Loading"
|
||||
size = "md"
|
||||
lines = 3
|
||||
class = ""
|
||||
}
|
||||
view {
|
||||
<div aria-hidden="true" class="animate-pulse bg-slate-200 dark:bg-slate-800 h-{height} rounded-{rounded} {className}"></div>
|
||||
<div class="wire-next wire-next--color-{color} wire-next--size-{size} wire-next--skeleton wire-next--size-{size} {class}" role="status" aria-label="{label}">
|
||||
{#if "Skeleton" === "Skeleton"}{#each Array(lines).fill(0) as line}<span></span>{/each}{:else}<i aria-hidden="true"></i>{/if}
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user