--- layout: default title: "EditInDialogButton" --- # `` This [Enterprise Edition](https://react-admin-ee.marmelab.com)React Admin Enterprise Edition icon component renders a button opening an `` view inside a dialog, hence allowing to edit a record without leaving the current view. It can be useful in case you want the ability to edit a record linked by a reference to the currently edited record, or if you have a nested `` inside a `` or an `` view. Note that this component doesn't use routing, so it doesn't change the URL. It's therefore not possible to bookmark the edit dialog, or to link to it from another page. If you need that functionality, use [``](./EditDialog.md) instead. ## Usage First, install the `@react-admin/ra-form-layout` package: ```sh npm install --save @react-admin/ra-form-layout # or yarn add @react-admin/ra-form-layout ``` **Tip**: [`ra-form-layout`](https://react-admin-ee.marmelab.com/documentation/ra-form-layout#createindialogbutton-editindialogbutton-and-showindialogbutton) is hosted in a private npm registry. You need to subscribe to one of the [Enterprise Edition](https://react-admin-ee.marmelab.com/) plans to access this package. Then, put `` wherever you would put an ``, and use the same children as you would for an [``](./Edit.md) component (e.g. a ``): ```jsx import { DataTable, ReferenceManyField, Show, SimpleForm, SimpleForm, TextField, TextInput, } from "react-admin"; import { EditInDialogButton } from "@react-admin/ra-form-layout"; const CompanyShow = () => ( ); ``` ## Props `` accepts the following props: | Prop | Required | Type | Default | Description | | ------------------ | -------- | ----------------- | ------- | --------------------------------------------------------------------------------------- | | `ButtonProps` | Optional | `object` | | Object containing props to pass to Material UI's `