# Skeleton
A placeholder component used to indicate loading state before content is available.
```jsx featured
```
```css preview
.skeleton[data-variant] {
min-width: fit-content;
min-height: fit-content;
border-radius: min(32px, var(--lcs-radius, 0px));
&[data-variant="solid"] {
background-color: rgb(var(--border-1));
}
&[data-variant="pulse"] {
/* add pulse animation */
}
&[data-variant="shimmer"] {
/* add shimmer animation */
}
}
```
[View Source](https://github.com/LocusInc/locus-ui/tree/main/packages/locus-ui/src/components/skeleton)
## Anatomy
```jsx code no-header
```
## Examples
### Variants
Skeleton components come with three built-in variants: `solid`, `pulse`, and `shimmer`.
```jsx
{["solid", "pulse", "shimmer"].map((variant) => (
{variant}
))}
```
### Loading State
Use the `loading` prop to toggle between the skeleton and its children. When `loading` is `false`, the children are rendered instead of the skeleton placeholder.
```jsx
Loading
This is the content
Loaded
This is the content
```
### Composition
Skeletons can be composed to represent more complex loading layouts.
```jsx
```