-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFR] Add options prop to TabbedShowLayout #2740
[RFR] Add options prop to TabbedShowLayout #2740
Conversation
Thanks for your PR. I have a better idea to solve this problem: add a |
Instead of using an "options" prop to pass props to the <Tabs> in <TabbedShowLayout>, now a whole <Tabs> custom component can be passed through the new "tabs" prop.
That indeed sounds better. Just made another commit to it implementing that. |
Please make this PR against |
Instead of using an "options" prop to pass props to the <Tabs> in <TabbedShowLayout>, now a whole <Tabs> custom component can be passed through the new "tabs" prop.
Also fix linting.
Sorry about the messed up history, first time forking and making a PR on github here. All those force-pushes were to fix a rebase gone wrong. Should I redo it from scratch to clean things up? |
I can squash and merge, don't worry about that. |
Previously it was being passed to its children.
Terrific, thanks a lot! |
Is this really working? I tried to use an options object with props defined in material-ui tabs component in |
I'm sory @MROFerreiro, the PR title became misleading after it was decided to use a |
Currently is not possible to use your solution with |
Please open a new PR to export and document |
@lucas2595 can you do it? Since you were the one that build this feature you would produce better docs than I and faster. Don't forget the export of the new Tabs component. 😃 |
Sure thing, @MROFerreiro. Sorry for the delay, got caught up with with some other stuff in the past days. I'll do it right now. |
After facing the same problems as #2317, this PR allows to pass props through
<TabbedShowLayout>
to material-ui's<Tabs>
. This way the user can enable all the different Tabs modes (such asscrollable
,centered
), and pass other props that might be useful. This is done through theoptions
prop in<TabbedShowLayout>
.