# DataInspector

Open a payload, follow its structure and copy the JSON without a developer-tools panel.

- Family: Data, imported from `mizu-ui` or `mizu-ui/data`
- Docs: https://mizu.user64bit.world/components/data-inspector
- Source: https://github.com/0xuser64bit/mizu/blob/main/packages/mizu/src/data/Inspection.tsx

## Usage

```tsx
import { DataInspector } from "mizu-ui";

export function Example() {
  return (
    <DataInspector
      label="Example release payload"
      value={{
        name: "mizu-ui",
        version: "0.2.0",
        checks: { types: true, lint: true },
        files: ["styles.css", "fonts.css"],
      }}
    />
  );
}
```

## Copy it with the shadcn CLI

```sh
npx shadcn@latest init 0xuser64bit/mizu/preset # once, where there is no components.json
npx shadcn@latest add 0xuser64bit/mizu/data-inspector
```

## Props

- `value`: `unknown`. A JSON-like object, array or scalar.
- `label`: `string` (default `"Data"`). Section name.

## Accessibility

Native disclosure controls. Circular objects are marked; copy is omitted when serialization fails. Depth is capped at eight and siblings at 200.

## Motion

Native disclosure; no observers.
