# @salmonui/notifications/skeleton API reference

> 4 exported symbols of @salmonui/notifications/skeleton: 1 component, 1 interface and 2 types.

Canonical: https://salmonui.dev/docs/reference/notifications/skeleton

```ts
import { … } from '@salmonui/notifications/skeleton';
```

## Components

### Skeleton

Kind: component

Page: https://salmonui.dev/docs/reference/notifications/skeleton/Skeleton

```ts
function Skeleton({ shape, lines, width, height, animation, loading, children, className, style, ref, ...rest }: SkeletonProps): ReactNode;
```

A placeholder shape shown while content loads.

Props: [`SkeletonProps`](https://salmonui.dev/docs/reference/notifications/skeleton/SkeletonProps) (its members are the props)

## Interfaces

### SkeletonProps

Kind: interface

Page: https://salmonui.dev/docs/reference/notifications/skeleton/SkeletonProps

```ts
interface SkeletonProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
    shape?: SkeletonShape;
    lines?: number;
    width?: number | string;
    height?: number | string;
    animation?: SkeletonAnimation;
    loading?: boolean;
    children?: ReactNode;
    ref?: Ref<HTMLSpanElement>;
}
```

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `shape` | `shape?: SkeletonShape;` | optional | `'text'` (default, a line of text height), `'circle'` or `'rect'`. |
| `lines` | `lines?: number;` | optional | Text lines (`shape="text"`); the last of several lines is shorter. |
| `width` | `width?: number \| string;` | optional | Inline size: a number of pixels or any CSS length. |
| `height` | `height?: number \| string;` | optional | Block size: a number of pixels or any CSS length. |
| `animation` | `animation?: SkeletonAnimation;` | optional | `'wave'` (default, the transform-only shimmer shared with the Data Grid skeleton rows), `'pulse'` (opacity) or `false` (static). Every animation stops under `prefers-reduced-motion`. |
| `loading` | `loading?: boolean;` | optional | Shows the placeholder (default `true`). With `children`, `loading={false}` renders only the children and `loading` sizes the placeholder from them while they are hidden and `inert`. |
| `children` | `children?: ReactNode;` | optional | Content the placeholder stands in for. |
| `ref` | `ref?: Ref<HTMLSpanElement>;` | optional | The root `<span>`. |

## Types

### SkeletonAnimation

Kind: type

Page: https://salmonui.dev/docs/reference/notifications/skeleton/SkeletonAnimation

```ts
type SkeletonAnimation = 'wave' | 'pulse' | false;
```

### SkeletonShape

Kind: type

Page: https://salmonui.dev/docs/reference/notifications/skeleton/SkeletonShape

```ts
type SkeletonShape = 'text' | 'circle' | 'rect';
```
