# Skeleton

Provides a placeholder that mirrors content while data is loading. Shape it to match the layout users can expect.

Package: `@kela-systems/ui-components` 4.1.0

```tsx
import { Skeleton } from "@kela-systems/ui-components";
```

Links (Kela sign-in needed): [Storybook](https://main--6af1efd9453270bb59a6c00c.chromatic.com/?path=/docs/components-skeleton--docs), [Source](https://github.com/Kela-Systems/kela/tree/main/packages/next/ui-components/src/skeleton), [Figma](https://www.figma.com/design/anhlwrbFM6mUiL0klxeK1I/ARK---Design-System?node-id=64-243)

## Examples

### Default

```tsx
import { Skeleton, Stack } from "@kela-systems/ui-components";

export default function SkeletonDefault() {
  return (
    <Stack direction="row" gap={3} align="center" className="w-full max-w-xs">
      <Skeleton className="size-10 rounded-full" />
      <Stack gap={2} grow>
        <Skeleton className="h-4 w-3/4" />
        <Skeleton className="h-4 w-1/2" />
      </Stack>
    </Stack>
  );
}
```

## Props

A `className` on a part adds layout only: placement, sizing and spacing. Pick a look with a variant.

### Skeleton

Also takes the attributes of the HTML element it renders.
