Skip to content

Commit

Permalink
Merge pull request #9775 from anthonycmain/patch-1
Browse files Browse the repository at this point in the history
[Doc] Fix `<RichTextInput>` import in SimpleForm doc
  • Loading branch information
slax57 committed Apr 15, 2024
2 parents 3214e91 + f6331ba commit bfa847b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/SimpleForm.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ The `<SimpleForm>` creates a `<form>` to edit a record, and renders its children
`<SimpleForm>` is often used as child of `<Create>` or `<Edit>`. It accepts Input and Field components as children. It relies on [react-hook-form](https://react-hook-form.com/) for form handling. It requires no prop by default.

```jsx
import { Create, SimpleForm, TextInput, RichTextInput, NumberInput } from 'react-admin';
import { Create, SimpleForm, TextInput, NumberInput } from 'react-admin';
import { RichTextInput } from 'ra-input-rich-text';

export const PostCreate = () => (
<Create>
Expand Down Expand Up @@ -832,4 +833,4 @@ export const PostCreate = () => (
);
```

React-admin forms leverage react-hook-form's [`useForm` hook](https://react-hook-form.com/docs/useform).
React-admin forms leverage react-hook-form's [`useForm` hook](https://react-hook-form.com/docs/useform).

0 comments on commit bfa847b

Please sign in to comment.