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

Advanced Title support and proper handling of children #27

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

dignifiedquire
Copy link

Hey,
thanks for the nice component, here are some fixed that I need to make it working with everything I need.

  1. Allow title to be an element. This gives the ability to pass in something like title={<span><b>Advanced</b> <i>Title</i></span>.
  2. Ensure this.props.children are handled using React.Children to avoid any issues with different types of children. (I was running into issues using it with formsy-react. This also removes the need to explicitly handle single child cases, as well as the need to filter out falsy children.

@ribeiroct
Copy link

+1 for this

It works either way, but i get a bit annoyed at the warnings during development.

@Overload119
Copy link

+1, especially the props.children issue.

@tuukka
Copy link

tuukka commented Oct 30, 2015

+1, also needed for tabs translated/localised/internationalised with react-intl component <FormattedMessage>.

@derpoho
Copy link

derpoho commented May 3, 2016

+1 this one is good! Why is the merge not accepted?

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

Successfully merging this pull request may close these issues.

5 participants