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(inputGroup): add InputGroup #99

Merged
merged 1 commit into from
Aug 18, 2016

Conversation

TheSharpieOne
Copy link
Member

Resolves #74
Add InputGroup with size prop
Add InputGroupAddon
Change Input to add addon prop for radio/checkbox to not add form-check-input class
Add InputGroupButton with convinence shorthand when only a single string is passed
Add tests for all of the above
Add documention

Resolves reactstrap#74
Add InputGroup with size prop
Add InputGroupAddon
Change Input to add addon prop for radio/checkbox to not `add form-check-input` class
Add InputGroupButton with convinence shorthand when only a single string is passed
Add tests for all of the above
Add documention
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling b3231a1 on TheSharpieOne:feature/input-group into * on reactstrap:master*.

1 similar comment
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling b3231a1 on TheSharpieOne:feature/input-group into * on reactstrap:master*.

const propTypes = {
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
children: PropTypes.node,
groupClassName: PropTypes.any,
Copy link
Member

Choose a reason for hiding this comment

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

Been thinking about these one off props. They seem fine for now. Do you think that something like tags, props and classNames would help define a common pattern for this kind of stuff? ex: classNames={{group, button}}, props={{group: groupAttrs}}.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, definitely. I like the props since className is just a prop, one could do props={{group: {className: 'yo'}}} to get that there without a special prop just for it.
I can change this in a future PR to match that pattern if you want to go that way.

@eddywashere
Copy link
Member

:shipit:

@eddywashere eddywashere merged commit 18a2ef7 into reactstrap:master Aug 18, 2016
@eddywashere eddywashere mentioned this pull request Aug 18, 2016
@TheSharpieOne TheSharpieOne deleted the feature/input-group branch August 18, 2016 01:37
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

3 participants