Skip to content
W WRNexusJS
feedback component

Skeleton

Reusable skeleton component.

@wrnexus/ui 0.2.673 props0 slots0 events

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

PropTypeRequirementDefault
heightstringOptional"4"
roundedstringOptional"lg"
classNamestringOptional""

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>
    }
}