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

feat(Uncontrolled): add various uncontrolled components #307

Merged
merged 3 commits into from
Jan 28, 2017

Conversation

TheSharpieOne
Copy link
Member

Alert (dismissible), ButtonDropdown, Dropdown, NavDropdown, and Tooltip now have uncontrolled counterparts UncontrolledAlert, UncontrolledButtonDropdown, UncontrolledDropdown, UncontrolledNavDropdown, and UncontrolledTooltip respectfully.
These uncontrolled components can be used without the user/developer needing to control the state. They will manage their own state of when to show/hide based on the common use-case. The original components are still there for the more advanced use and non-common use-cases.
The goal of these new components is to make it easier for out-of-the-box development.

Documentation for the various components have been added to the end of each of their respective pages.

}
}

SimpleComponent.displayName = key;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@eddywashere
Copy link
Member

Thanks! It kind of highlights the api differences between the components added and ones that could be added, Popover & Modal. I don't think it would be practical to have Tooltip require onMouseEnter, onMouseLeave + using toggle and isOpen on the target component. Maybe Tooltip could have a prop to enable current auto hover events and Popover could have a similar prop to enable auto hover handlers. I'll create an issue to track/discuss it. Thanks again!

@eddywashere eddywashere merged commit 2f648c1 into reactstrap:master Jan 28, 2017
This was referenced Jan 28, 2017
@TheSharpieOne TheSharpieOne deleted the feature/uncontrolled branch January 31, 2017 15:34
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.

None yet

2 participants