react-validating-form
v0.1.1
Published
A validating form for use with React
Downloads
27
Readme
#React Validating Form
##Example
var Example1 = React.createClass({
handleSubmit: function(value){
alert(JSON.stringify(value));
},
render: function(){
return (
<Well className="example">
<ValidatingForm
schema={userSchema}
onSubmit={this.handleSubmit}
submitLabel="Register"
ref='form'
horizontal>
<ValidatingInput
field='username'
placeholder='Enter Username'
wrapperClassName={wrapperClassName}/>
<ValidatingInput
field='password'
type='password'
placeholder='Enter Password'
wrapperClassName={wrapperClassName}/>
<ValidatingInput
field='passwordCheck'
type='password'
placeholder='Re-enter Password'
wrapperClassName={wrapperClassName}/>
<Button
bsStyle='primary'
type='submit'
className='pull-right'>Register</Button>
</ValidatingForm>
</Well>
);
}
});