Skip to content

Commit

Permalink
Merge pull request #6132 from marmelab/doc-add-aside-screenshot
Browse files Browse the repository at this point in the history
[Doc] Add illustration for the <Aside> component
  • Loading branch information
djhi authored Apr 7, 2021
2 parents f237d02 + 757c6b1 commit 34dfc0c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/CreateEdit.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ const PostEditActions = ({ basePath, data }) => (

### Aside component

![Aside component](./img/aside.png)

You may want to display additional information on the side of the form. Use the `aside` prop for that, passing the component of your choice:

{% raw %}
Expand Down
4 changes: 3 additions & 1 deletion docs/Show.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ export const PostShow = (props) => (

### Aside component

![Aside component](./img/aside.png)

You may want to display additional information on the side of the resource detail. Use the `aside` prop for that, passing the component of your choice:

{% raw %}
Expand Down Expand Up @@ -385,7 +387,7 @@ import {
} from 'react-admin';

const ScrollableTabbedShowLayout = props => (
<Show{...props}>
<Show {...props}>
<TabbedShowLayout tabs={<TabbedShowLayoutTabs variant="scrollable" {...props} />}>
...
</TabbedShowLayout>
Expand Down
Binary file added docs/img/aside.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 34dfc0c

Please sign in to comment.