-
Notifications
You must be signed in to change notification settings - Fork 972
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
Consider allowing children in Navigation element #144
Comments
Why not just import the stylesheet from the Link tag and use the You wouldn't want to wrap another |
Oh, ack -- I meant react-router. Sorry I made that more confusing! It's not about styling. react-router |
Hm, I'm not sure what you're getting at? The |
Again: it's not about styling. Here's a link to the That method is calling a There's other functionality in react-router's react-toolbox/components/drawer/index.jsx Line 14 in 0d5310d
|
I see what you guys mean. @drhayes you can use a regular Anyway we should give the user the ability to define content in a navigation with Thanks! :) |
Ah, okay! Yeah, you're both right, I see that now. Yeah, the Thanks for sticking with me and helping me get it through my thick skull. :) |
No problem @drhayes! |
Actually @drhayes it's possible to give children to a navigation component. Try in the playground: const NavigationTest = () => (
<Navigation type='horizontal'>
<Button label='Action 1' />
<Button label='Action 2' />
</Navigation>
); |
Hi @javivelasco @drhayes |
OK, no worries. I found the perfect solution. The And these Here is the project for everybody who has the same issue. Cheers |
@javivelasco the link you pointed to here (to navigation.jsx) no longer exists. |
I'm using redux-router and I'm relying on their
Link
elements. Regular<a>
tags, like react-toolbox'sLink
component, reload the entire app instead of making the right kind of state change.If the Navigation element allowed custom children then I'd be able to use it. Maybe inside of a
<NavigationItem>
element or something?The text was updated successfully, but these errors were encountered: