# SkeletonProps (@salmonui/notifications/skeleton)

> The SkeletonProps interface of @salmonui/notifications/skeleton.

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

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

Entry index: https://salmonui.dev/docs/reference/notifications/skeleton (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/notifications/skeleton.md).

## Reference

Kind: interface

```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>`. |
