Skip to content

Commit

Permalink
Fix form customization code snippet in CreateEdit documentation
Browse files Browse the repository at this point in the history
Closes #4329
  • Loading branch information
fzaninotto authored and JulienMattiussi committed Jan 31, 2020
1 parent a87550f commit e9322ae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/CreateEdit.md
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,14 @@ export const PostEdit = (props) => (
The input components are wrapped inside a `div` to ensure a good looking form by default. You can pass a `formClassName` prop to the input components to customize the style of this `div`. For example, here is how to display two inputs on the same line:

```jsx
import React from 'react';
import {
Edit,
SimpleForm,
TextInput,
} from 'react-admin';
import { makeStyles } from '@material-ui/core/styles';
const useStyles = makeStyles({
inlineBlock: { display: 'inline-flex', marginRight: '1rem' },
});
Expand Down

0 comments on commit e9322ae

Please sign in to comment.