import { Meta, Story, Primary, Controls } from '@storybook/blocks';

import * as EditStories from './Edit.stories';

<Meta of={EditStories} />

# Edit

The `<Edit>` component is the main component for edition pages. It fetches a record based on the URL, prepares a form submit handler, and renders the page title and actions. It is not responsible for rendering the actual form - that’s the job of its child component (usually a form component, like `<SimpleForm>`). This form component uses its children (`<Input>` components) to render each form input. [More information](https://marmelab.com/react-admin/Edit.html).

<Controls />

## Default

<Story of={EditStories.Default} />

## CustomActions

<Story of={EditStories.CustomActions} />

## Default

<Story of={EditStories.Default} />