Skeleton
The stack is a layout component to compose components or elements and apply a space between them.
Import
Importimport { Skeleton } from '@backyard-ui/core';Usage
UsageSize
SizeUse the size prop to set the width or height.
Shape
ShapeUse the size prop to change the shape radius.
Wrapping
WrappingYou can wrap in a component, to get inherited width and height.
Loaded
LoadedUse the isLoaded prop to prevent the skeleton from rendering.
API Reference
API Reference- childrenDescription The children elementsType
ReactNode - heightDescription The CSS `height` propertyType
stringDefaultauto - widthDescription The CSS `width` propertyType
stringDefault100% - radiusDescription The CSS `border-radius` propertyType
"sm" | "md" | "lg" | "xl" | "2xl" | "full"Defaultsm - isLoadedDescription If true, render the childrenType
booleanDefaultfalse