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
Implement Input #20
Comments
Hmm. That's a good start, but there's a fair bit going on in the Boostrap component. It's confusing though, because the docs are a bit scattered (as usual): http://getbootstrap.com/css/#forms Here's how my current Input component works. It doesn't use all of the functionality either.
Here's my implementation of Input. It does some validation; I'm not sure if this is a great idea.
|
I'd like to leave validation out of the component at least for now. Just add the relevant error/warning class from some prop like |
I missed that "before" and "after" would do the input-group parts, so that's covered. Where does placeholder text go? |
oh, yeah, forgot placeholder - I'll add that. On Tue, Feb 11, 2014 at 3:03 PM, syllog1sm notifications@github.com wrote:
|
What would be really cool is to have Input with optional autocompletion |
That would be great. Id like a pure React Selectize https://github.com/brianreavis/selectize.js . It's not going to happen in this project I'm afraid. |
Answering my own comment: https://github.com/chenglou/react-chosen For those looking ) |
Is there any work in progress? I may have some time to spend on it. I agree that validation should stay out for now. |
That would be fantastic! I don't think it's been started.@pieterv ? |
@liamcmitchell sounds good! I haven't made any progress on this. For validation it would be nice if we can make sure HTML5 validation properties can still be set on the input, |
Work in progress here: #89 |
Just note that there is wrapper around selectize.js |
@PetrSnobelt Did you so that library's announcement that it is no longer maintained? What are you looking for? |
I know, but it is only wrapper... |
…t-close Allows nesting root close wrappers
…-bin-babel use node_modules/.bin/babel
Some ideas
If
label
prop is present, a.form-group
is rendered:if
addonBefore
oraddonAfter
prop is present, an.input-group
is added:type
can also beselect
,textarea
or a custom instancecheckbox
orradio
, label wraps inputhasFeedback
adds icons based onbsStyle
The text was updated successfully, but these errors were encountered: