AnyLumino
API referenceastryxdata

Skeleton

Render an Astryx skeleton placeholder.

Astryx Props

JSON-safe Skeleton props forwarded to Astryx.

Supported Astryx props include:

  • width (number or string): Width in pixels (number) or CSS value (string).
  • height (number or string): Height in pixels (number) or CSS value (string).
  • radius ('none' or 0 or 1 or 2 or 3 or 4 or 'rounded'): Border radius using design token scale. Use none for sharp corners, rounded for fully rounded (avatars, pills, circles).
  • index (number): Index for staggered animation timing. For element at index n, animation starts at DELAY_TIME + (STAGGER_TIME x n).

See Astryx component docs: https://astryx.atmeta.com/components/Skeleton.

Functions

constructor__init__(*, width='100%', height=16, radius=None, index=None, **props) -> None
paramwidthint | str
= '100%'

CSS width. Numbers are normalized by anylumino where supported.

paramheightint | str
= 16

CSS height. Numbers are normalized by anylumino where supported.

paramradiusstr | int | None
= None

Skeleton corner radius.

paramindexint | None
= None

Staggered animation index.

parampropsAny
= {}

Returns

None

On this page