# Source: https://mui.com/x/api/data-grid/grid-export-state-params.md

# GridExportStateParams API

## Demos

For examples and details on the usage of this React component, visit the component demo pages:

- [Restore state with `apiRef`](/x/react-data-grid/state/#restore-the-state-with-apiref)

## Import

```jsx
import { GridExportStateParams } from '@mui/x-data-grid-premium'
// or
import { GridExportStateParams } from '@mui/x-data-grid-pro'
// or
import { GridExportStateParams } from '@mui/x-data-grid'
```

## Props

| Name | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| exportOnlyDirtyModels | `boolean` | `false` | No |  |

> **Note**: The `ref` is forwarded to the root element.