Skip to content
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

AppBar Toolbar customization using children #2534

Closed
alanpoulain opened this issue Nov 14, 2018 · 1 comment
Closed

AppBar Toolbar customization using children #2534

alanpoulain opened this issue Nov 14, 2018 · 1 comment
Assignees

Comments

@alanpoulain
Copy link
Contributor

Is your feature request related to a problem? Please describe.
If you want to add elements to the Toolbar of the AppBar, you need to copy all the AppBar into your custom one.

Describe the solution you'd like
Why not allowing children to be passed to the Toolbar? Maybe between Typography and LoadingIndicator.

Describe alternatives you've considered
It could also be a render prop for the Toolbar.

Additional context
Example:

import React from 'react'
import { AppBar } from 'react-admin'

export default props =>
  <AppBar {...props}>
    <!-- Toolbar components here -->
  </AppBar>
@fzaninotto
Copy link
Member

Fixed by #2777

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants