Skip to content

Commit

Permalink
Better doc explanation for TabbedFormTabs
Browse files Browse the repository at this point in the history
Co-Authored-By: Gildas Garcia <gildas.garcia@pm.me>
  • Loading branch information
sagarbakhtar and Gildas Garcia authored May 31, 2019
1 parent 079bf86 commit 596b727
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/CreateEdit.md
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,9 @@ To style the tabs, the `<FormTab>` component accepts two props:
- `contentClassName` is passed to the tab *content*
### TabbedFormTabs
By default `<TabbedForm>` uses, `<TabbedFormTabs>` internal react-admin component to renders tabs. You can pass custom component as the `tabs` prop to override the default component. Also props from `<TabbedFormTabs>` are passed to material-ui's `<Tabs>` component inside `<TabbedFormTabs>`.
By default `<TabbedForm>` uses, `<TabbedFormTabs>` internal react-admin component to renders tabs. You can pass a custom component as the `tabs` prop to override the default component. Besides, props from `<TabbedFormTabs>` are passed to material-ui's `<Tabs>` component inside `<TabbedFormTabs>`.
Following example shows how to make use to scrollable `<Tabs>`, you can pass scrollable prop to `<TabbedFormTabs>` and pass that as `tabs` prop to `<TabbedForm>`
Following example shows how to make use of scrollable `<Tabs>`. Pass the `scrollable` prop to `<TabbedFormTabs>` and pass that as the `tabs` prop to `<TabbedForm>`
```jsx
import {
Expand Down

0 comments on commit 596b727

Please sign in to comment.