# Skeleton

A decorative placeholder that reserves space for loading content.

Connect Flood once using [the installation guide](https://flood.md/docs/installation). Then import the components you use; no per-component add command is needed.

## Example

```tsx
"use client";

import { FloodRoot, Stack, Skeleton } from "@flood-md/react";
import "@flood-md/react/styles.css";

export function Example() {
  return (
    <FloodRoot>
      <Stack gap="2">
        <Skeleton width="65%" />
        <Skeleton />
        <Skeleton width="80%" />
      </Stack>
    </FloodRoot>
  );
}
```

## Design notes

- Always hidden from assistive technology. The host owns loading announcements and aria-busy on the relevant region.
- Width and height accept CSS dimensions; style overrides them. Match the final content geometry.
- Animation can be disabled; reduced motion and forced colors disable the pulse. Available in 0.2.4.

## API reference

| Prop | Values | Default |
| --- | --- | --- |
| `shape` | `"text" \| "rounded" \| "circle"` | `"text"` |
| `width` | `CSSProperties["width"]` | `—` |
| `height` | `CSSProperties["height"]` | `—` |
| `animate` | `boolean` | `true` |
| `Native HTML props` | `Omit<HTMLAttributes<HTMLSpanElement>, "children" \| "role" \| "tabIndex" \| "aria-label" \| "aria-hidden">` | `Forwarded` |
