NEURALNG

PUBLIC API

Skeleton contracts

A deliberately small API keeps generated loading layouts predictable.

Inputs

InputTypeDefaultPurpose
shape'rectangle' | 'rounded' | 'circle''rounded' Selects geometry; circle resolves both dimensions from size.
animation'pulse' | 'wave' | 'none''pulse' Selects the visual loading effect.
widthstring'100%' CSS inline size for rectangle and rounded shapes.
heightstring'1rem' CSS block size for rectangle and rounded shapes.
sizestring'2.5rem' CSS width and height used by circle shape.
borderRadiusstring | nullnull Inline radius override applied after shape styles.
unstyledbooleanfalse Removes all NeuralNg visual classes.
skeletonClassstring'' Additive consumer classes on the root.
classesNeuralSkeletonClasses{} Typed root and effect class slots.

Typed class slots

root

Sized decorative placeholder and clipping surface.

effect

Animated wave layer inside the root.

Public types

NeuralSkeletonShape

'rectangle' | 'rounded' | 'circle'

NeuralSkeletonAnimation

'pulse' | 'wave' | 'none'

NeuralSkeletonClasses

{ root?: string; effect?: string }

Legacy alias

SkeletonComponent remains a deprecated compatibility alias. New code and AI-generated examples use NeuralSkeleton.