# ListSkeleton

Loading rows that share the spacing and tracks of a data list.

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, ListSkeleton } from "@flood-md/react";
import "@flood-md/react/styles.css";

export function Example() {
  return (
    <FloodRoot>
      <ListSkeleton label="Loading activity…" rows={3} media description metadata dividers={false} />
    </FloodRoot>
  );
}
```

## Design notes

- Use during the initial load of a DataList. Match the number of expected rows, density, media, descriptions, metadata and dividers to the destination list.
- Set reserveSelectionSpace when the loaded DataList has a checkbox track. The skeleton keeps the title aligned without exposing an interactive checkbox.
- The placeholder list is decorative. Localize the loading announcement through label. Keep that message outside any ancestor marked aria-busy.
- Leave the current results in place during a background refresh. For a DataTable body, use loadingAppearance=skeleton on DataTable.

## API reference

| Prop | Values | Default |
| --- | --- | --- |
| `label` | `string` | `Required` |
| `rows` | `number` | `3` |
| `density` | `DataListProps["density"]` | `"comfortable"` |
| `media` | `boolean` | `false` |
| `description` | `boolean` | `false` |
| `metadata` | `boolean` | `false` |
| `reserveSelectionSpace` | `boolean` | `—` |
| `dividers` | `boolean` | `—` |
| `animate` | `boolean` | `true` |
| `Native HTML props` | `Omit<HTMLAttributes<HTMLDivElement>, "children" \| "role">` | `Forwarded` |
