This component is based on the Radix Slot primitive and also supports common margin props m, mx, my, ml, mr, mt, mb. View source
Examples
Loading
Use the loading prop to control when the Skeleton is rendered.
<Flexgap="3">
<Skeletonloading={true}>
<Button>Button</Button>
</Skeleton>
<Skeletonloading={false}>
<Button>Button</Button>
</Skeleton>
</Flex>
Empty
An empty Skeleton displays a placeholder that represents a line of text.
<Flexdirection="column"gap="3"maxWidth="300px">
<Skeleton/>
<Skeleton/>
<Skeletonwidth="80%"/>
</Flex>
With interactive elements
You can nest interactive elements like inputs and buttons inside Skeleton. The component automatically makes sure that they can’t be hovered, clicked, or focused.