release: WRNexusJS 0.2.48
This commit is contained in:
@@ -1,11 +1 @@
|
||||
// Loading placeholder (animated shimmer). Size it with width/height props.
|
||||
component Skeleton {
|
||||
props {
|
||||
width = "100%"
|
||||
height = "1rem"
|
||||
class = ""
|
||||
}
|
||||
view {
|
||||
<span class="wire-skeleton {class}" style="width: {width}; height: {height};" aria-hidden="true"></span>
|
||||
}
|
||||
}
|
||||
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> } }
|
||||
|
||||
Reference in New Issue
Block a user