Form components you’ll need for building great looking mobile and desktop apps. Shipping 15 distinct elements ranging from inputs to layout helpers.

With useful features for a refined UX, including the following elements:

  • Single and multiline text
  • Select styling
  • Buttons
  • Segmented control
  • Checkbox and checklist
  • Radio buttons
  • Switch
  • Rating
  • Stepper
  • Page & typography
  • Slider
  • Progress
  • Alerts
  • Notifications
  • Notes


Forms demos available for other frameworks.

Viewing demos & code for

Forms - Text Fields

Choose demo
class FormsDemo extends React.Component {
    render() {
        return (
            <div>
                <mobiscroll.Form theme="" lang="">
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Single-line text</div>
                        <mobiscroll.Input placeholder="Text field label">Label</mobiscroll.Input>
                        <mobiscroll.Input type="password" placeholder="Password field with icon" icon="lock2">Password</mobiscroll.Input>
                        <mobiscroll.Input type="password" placeholder="Password field with icon" icon="lock2" passwordToggle="true">Password Toggle</mobiscroll.Input>
                        <mobiscroll.Input placeholder="Text field with right icon" icon="pencil" iconAlign="right" />
                        <mobiscroll.Input placeholder="Text field disabled" disabled="true" />
                        <mobiscroll.Input placeholder="Text field with error style" valid={false} />
                        <mobiscroll.Input placeholder="Text field with error style and message" valid={false} errorMessage="Error message!" />
                    </div>
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Multi-line text</div>
                        <mobiscroll.Textarea>Label</mobiscroll.Textarea>
                        <mobiscroll.Textarea icon="pencil" iconAlign="right" />
                        <mobiscroll.Textarea icon="bubble" iconAlign="left">Label</mobiscroll.Textarea>
                        <mobiscroll.Textarea placeholder="disabled" disabled="true" />
                        <mobiscroll.Textarea valid={false} errorMessage="Error message!" />
                    </div>
                    <div className="mbsc-form-group-inset">
                        <div className="mbsc-form-group-title">Inset fields</div>
                        <mobiscroll.Input placeholder="Email" type="email" name="Email" />
                		<mobiscroll.Input name="password" type="text" placeholder="Password" passwordToggle="true" icon="none" iconAlign="right" />
                    </div>
                </mobiscroll.Form>
            </div>
        );
    }    
}

<div id="content"></div>

Forms - Select

Choose demo
class FormsDemo extends React.Component {
    render() {
        return (
            <mobiscroll.Form theme="" lang="">
                <div className="mbsc-form-group">
                    <div className="mbsc-form-group-title">Select</div>
                    <mobiscroll.Dropdown label="Label">
                            <option>Select</option>
                            <option value="volvo">Volvo</option>
                            <option value="saab">Saab</option>
                            <option value="mercedes">Mercedes</option>
                            <option value="audi">Audi</option>
                    </mobiscroll.Dropdown>
                    <mobiscroll.Dropdown icon="plus" iconAlign="right">
                        <option>Select with right icon</option>
                        <option value="opel">Opel</option>
                        <option value="renault">Renault</option>
                        <option value="Citroen">Citroen</option>
                        <option value="Lotus">Lotus</option>
                    </mobiscroll.Dropdown>
                    <mobiscroll.Dropdown icon="plus">
                        <option>Select with left icon</option>
                        <option value="Peugeot">Peugeot</option>
                        <option value="Porsche">Porsche</option>
                        <option value="Fiat">Fiat</option>
                        <option value="Volkswagen">Volkswagen</option>
                    </mobiscroll.Dropdown>
                    <mobiscroll.Dropdown valid={false}>
                        <option>Select error</option>
                        <option value="Ferrari">Ferrari</option>
                        <option value="Honda">Honda</option>
                        <option value="Suzuki">Suzuki</option>
                        <option value="Lamborghini">Lamborghini</option>
                    </mobiscroll.Dropdown>
                    <mobiscroll.Dropdown disabled={true}>
                        <option>Select disabled</option>
                        <option value="Bentley">Bentley</option>
                        <option value="Morgan">Morgan</option>
                        <option value="Chevrolet">Chevrolet</option>
                        <option value="Dodge">Dodge</option>
                    </mobiscroll.Dropdown>
                </div>
            </mobiscroll.Form>
        );
    }    
}

<div id="content"></div>

Forms - Checkbox

Choose demo
class FormsDemo extends React.Component {
    render() {
        return (
            <div>
                <mobiscroll.Form theme="" lang="" display="">
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Checkbox</div>
                        <mobiscroll.Checkbox defaultChecked>
                            Option 1
                            <span className="mbsc-desc">Checked checkbox</span>
                        </mobiscroll.Checkbox>
                        
                        <mobiscroll.Checkbox>
                            Option 2
                            <span className="mbsc-desc">Empty checkbox</span>
                        </mobiscroll.Checkbox>
                        <mobiscroll.Checkbox disabled>
                            Option 3
                            <span className="mbsc-desc">Disabled checkbox</span>
                        </mobiscroll.Checkbox>
                        <mobiscroll.Checkbox defaultChecked disabled>
                            Option 4
                            <span className="mbsc-desc">Disabled and checked checkbox</span>
                        </mobiscroll.Checkbox>
                    </div>
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Checkbox colors</div>
                
                        <mobiscroll.Checkbox color="primary" defaultChecked>
                            Primary
                        </mobiscroll.Checkbox>
                        <mobiscroll.Checkbox color="secondary" defaultChecked>
                            Secondary
                        </mobiscroll.Checkbox>
                        <mobiscroll.Checkbox color="success" defaultChecked>
                            Success
                        </mobiscroll.Checkbox>
                        <mobiscroll.Checkbox color="danger" defaultChecked>
                            Danger
                        </mobiscroll.Checkbox>
                        <mobiscroll.Checkbox color="warning" defaultChecked>
                            Warning
                        </mobiscroll.Checkbox>
                        <mobiscroll.Checkbox color="info" defaultChecked>
                            Info
                        </mobiscroll.Checkbox>
                    </div>
                </mobiscroll.Form>
            </div>
        );
    }    
}

<div id="content"></div>

Forms - Switch

Choose demo
class FormsDemo extends React.Component {
    render() {
        return (
            <div>
                <mobiscroll.Form theme="" lang="" display="">
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Switch</div>
                        <mobiscroll.Switch theme="" value={this.state.switch1} onChange={this.onChange1}>
                            Switch off
                            <span className="mbsc-desc">This is desctiption for Switch</span>
                        </mobiscroll.Switch>
                        <mobiscroll.Switch theme="" value={this.state.switch2} onChange={this.onChange2}>
                            Switch on
                            <span className="mbsc-desc">This is desctiption for Switch</span>
                        </mobiscroll.Switch>
                        <mobiscroll.Switch theme="" value={this.state.switch3} onChange={this.onChange1} disabled>
                            Switch off
                        </mobiscroll.Switch>
                        <mobiscroll.Switch theme="" value={this.state.switch4} onChange={this.onChange2} disabled>
                            Switch on
                        </mobiscroll.Switch>
                    </div>
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Switch colors</div>
                        
                        <mobiscroll.Switch theme="" value={this.state.switch1} onChange={this.onChange1} color="primary">
                            Primary
                        </mobiscroll.Switch>
                        <mobiscroll.Switch theme="" value={this.state.switch1} onChange={this.onChange1} color="secondary">
                            Secondary
                        </mobiscroll.Switch>
                        <mobiscroll.Switch theme="" value={this.state.switch1} onChange={this.onChange1} color="success">
                            Success
                        </mobiscroll.Switch>
                        <mobiscroll.Switch theme="" value={this.state.switch1} onChange={this.onChange1} color="danger">
                            Danger
                        </mobiscroll.Switch>
                        <mobiscroll.Switch theme="" value={this.state.switch1} onChange={this.onChange1} color="warning">
                            Warning
                        </mobiscroll.Switch>
                        <mobiscroll.Switch theme="" value={this.state.switch1} onChange={this.onChange1} color="info">
                            Info
                        </mobiscroll.Switch>
                    </div>
                </mobiscroll.Form>
            </div>
        );
    }
    
    constructor(props) {
        super(props);

        this.state = {
            switch1: true,
            switch2: false,
        };
    }
    
    onChange1 = (event) => {
        this.setState({
            switch1: event.target.checked
        });
    }
    
    onChange2 = (event) => {
        this.setState({
            switch2: event.target.checked
        });
    }
}

<div id="content"></div>

Forms - Radio buttons

Choose demo
class FormsDemo extends React.Component {
    render() {
        return (
            <div>
                <mobiscroll.Form theme="" lang="">
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Radio buttons</div>
                
                        <mobiscroll.Radio name="group" defaultChecked>
                            Radio Option 1
                            <span className="mbsc-desc">This is description for radio 1</span>
                        </mobiscroll.Radio>
                        <mobiscroll.Radio name="group">
                            Radio Option 2
                            <span className="mbsc-desc">This is description for radio 2</span>
                        </mobiscroll.Radio>
                        <mobiscroll.Radio name="group">
                            Radio Option 3
                        </mobiscroll.Radio>
                        <mobiscroll.Radio name="group" disabled>
                            Disabled
                        </mobiscroll.Radio>
                    </div>
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Radio button colors</div>
                
                        <mobiscroll.Radio color="primary" name="color">
                            Primary
                        </mobiscroll.Radio>
                        <mobiscroll.Radio color="secondary" name="color">
                            Secondary
                        </mobiscroll.Radio>
                        <mobiscroll.Radio color="success" name="color" defaultChecked>
                            Success
                        </mobiscroll.Radio>
                        <mobiscroll.Radio color="danger" name="color">
                            Danger
                        </mobiscroll.Radio>
                        <mobiscroll.Radio color="warning" name="color">
                            Warning
                        </mobiscroll.Radio>
                        <mobiscroll.Radio color="info" name="color">
                            Info
                        </mobiscroll.Radio>
                    </div>
                </mobiscroll.Form>
            </div>
        );
    }    
}

<div id="content"></div>

Forms - Buttons

Choose demo
class FormsDemo extends React.Component {
    render() {
        return (
            <div>
                <mobiscroll.Form theme="" lang="">
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Buttons</div>
                        <div className="mbsc-btn-group">
                            <mobiscroll.Button>Button</mobiscroll.Button>
                            <mobiscroll.Button disabled>Disabled</mobiscroll.Button>
                        </div>
                    </div>
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Full width buttons</div>
                        <div className="mbsc-btn-group-block">
                            <mobiscroll.Button>Full width button</mobiscroll.Button>
                            <mobiscroll.Button disabled>Disabled full width</mobiscroll.Button>
                        </div>
                    </div>
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Justified buttons</div>
                        <div className="mbsc-btn-group-justified">
                            <mobiscroll.Button>Tag</mobiscroll.Button>
                            <mobiscroll.Button>Favorite</mobiscroll.Button>
                            <mobiscroll.Button>Flag</mobiscroll.Button>
                        </div>
                    </div>
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Icons</div>
                        <div className="mbsc-btn-group">
                            <mobiscroll.Button icon="tag"></mobiscroll.Button>
                            <mobiscroll.Button icon="heart"></mobiscroll.Button>
                            <mobiscroll.Button icon="flag" disabled></mobiscroll.Button>
                        </div>
                        <div className="mbsc-btn-group">
                            <mobiscroll.Button icon="tag">Tag</mobiscroll.Button>
                            <mobiscroll.Button icon="heart">Favorite</mobiscroll.Button>
                            <mobiscroll.Button icon="flag" disabled>Flag</mobiscroll.Button>
                        </div>
                    </div>
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Flat buttons</div>
                        <div className="mbsc-btn-group">
                            <mobiscroll.Button flat={true}>Flat</mobiscroll.Button>
                            <mobiscroll.Button flat={true} icon="arrow-left5">Flat & Icon</mobiscroll.Button>
                            <mobiscroll.Button flat={true} icon="arrow-left5"></mobiscroll.Button>
                            <mobiscroll.Button flat={true} icon="key2" disabled></mobiscroll.Button>
                            <mobiscroll.Button flat={true} disabled>Flat disabled</mobiscroll.Button>
                        </div>
                    </div>
                    
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Outline buttons</div>
                        <div className="mbsc-btn-group">
                            <mobiscroll.Button outline={true}>Outline</mobiscroll.Button>
                            <mobiscroll.Button outline={true} icon="arrow-left5">Outline & Icon</mobiscroll.Button>
                            <mobiscroll.Button outline={true} icon="arrow-left5"></mobiscroll.Button>
                            <mobiscroll.Button outline={true} icon="key2" disabled></mobiscroll.Button>
                            <mobiscroll.Button outline={true} disabled>Outline disabled</mobiscroll.Button>
                        </div>
                    </div>
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Button colors</div>
                        <div className="mbsc-btn-group">
                            <mobiscroll.Button color="primary">Primary</mobiscroll.Button>
                            <mobiscroll.Button color="secondary">Secondary</mobiscroll.Button>
                            <mobiscroll.Button color="success">Success</mobiscroll.Button>
                            <mobiscroll.Button color="danger">Danger</mobiscroll.Button>
                            <mobiscroll.Button color="warning">Warning</mobiscroll.Button>
                            <mobiscroll.Button color="info">Info</mobiscroll.Button>
                            <mobiscroll.Button color="light">Light</mobiscroll.Button>
                            <mobiscroll.Button color="dark">Dark</mobiscroll.Button>
                        </div>
                    </div>
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Flat button colors</div>
                        <div className="mbsc-btn-group">
                            <mobiscroll.Button flat={true} color="primary">Primary</mobiscroll.Button>
                            <mobiscroll.Button flat={true} color="secondary">Secondary</mobiscroll.Button>
                            <mobiscroll.Button flat={true} color="success">Success</mobiscroll.Button>
                            <mobiscroll.Button flat={true} color="danger">Danger</mobiscroll.Button>
                            <mobiscroll.Button flat={true} color="warning">Warning</mobiscroll.Button>
                            <mobiscroll.Button flat={true} color="info">Info</mobiscroll.Button>
                            <mobiscroll.Button flat={true} color="light">Light button</mobiscroll.Button>
                            <mobiscroll.Button flat={true} color="dark">Dark</mobiscroll.Button>
                        </div>
                    </div>
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Outline button colors</div>
                        <div className="mbsc-btn-group">
                            <mobiscroll.Button outline={true} color="primary">Primary</mobiscroll.Button>
                            <mobiscroll.Button outline={true} color="secondary">Secondary</mobiscroll.Button>
                            <mobiscroll.Button outline={true} color="success">Success</mobiscroll.Button>
                            <mobiscroll.Button outline={true} color="danger">Danger</mobiscroll.Button>
                            <mobiscroll.Button outline={true} color="warning">Warning</mobiscroll.Button>
                            <mobiscroll.Button outline={true} color="info">Info</mobiscroll.Button>
                            <mobiscroll.Button outline={true} color="light">Light</mobiscroll.Button>
                            <mobiscroll.Button outline={true} color="dark">Dark</mobiscroll.Button>
                        </div>
                    </div>            
                    
                    
                </mobiscroll.Form>
            </div>
        );
    }    
}

<div id="content"></div>

Forms - Validation

Choose demo
mobiscroll.settings = {
    theme: '',
    lang: ''
};

class FormsDemo extends React.Component {
    constructor(props) {
        super(props);

        this.state = {
            formErrors: {},
            formValues: {
                username: '',
                email: '',
                password: '',
                gender: '',
                bio: ''
            }
        };
    }
    
    componentWillMount() {
        this.initValidation();
    }
    
    onFormChange = (key, event) => {
        var valueUpd = {};
        valueUpd[key] = {$set: event.target.value};
        var errorUpd = this.validateField(key, event.target.value);
        this.setState(React.addons.update(this.state, { formValues: valueUpd, formErrors: errorUpd }));
    }
    
    render() {
        var now=new Date();
        return (
            <div>
                <mobiscroll.Form noValidate={true}>
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Sign Up</div>
                        <mobiscroll.Input 
                            value={this.state.formValues.username} 
                            onChange={this.onFormChange.bind(this, "username")}
                            valid={!this.state.formErrors.username}
                            errorMessage={this.state.formErrors.username}
                            placeholder="Username"
                            icon="user4" />
                        
                        <mobiscroll.Input
                            type="email"
                            value={this.state.formValues.email}
                            onChange={this.onFormChange.bind(this, 'email')}
                            valid={!this.state.formErrors.email}
                            errorMessage={this.state.formErrors.email}
                            placeholder="Email"
                            icon="ion-ios7-email" />
    
                        <mobiscroll.Input
                            type="password"
                            value={this.state.formValues.password} 
                            onChange={this.onFormChange.bind(this, "password")}
                            valid={!this.state.formErrors.password}
                            errorMessage={this.state.formErrors.password}
                            placeholder="Password"
                            icon="lock2"
                            passwordToggle={true} />
    
                        <mobiscroll.Dropdown
                            value={this.state.formValues.gender}
                            onChange={this.onFormChange.bind(this, "gender")}
                            valid={!this.state.formErrors.gender}
                            errorMessage={this.state.formErrors.gender}
                            icon="user4">
                                <option value="">Please select</option>
                                <option value="female">Female</option>
                                <option value="male">Male</option>
                        </mobiscroll.Dropdown>

                        <mobiscroll.Textarea
                            value={this.state.formValues.bio}
                            onChange={this.onFormChange.bind(this, "bio")}
                            valid={!this.state.formErrors.bio}
                            errorMessage={this.state.formErrors.bio}
                            placeholder="About me"
                            icon="line-note" />
                    </div>
                    
                    <div className="mbsc-form-group mbsc-btn-group-block">
                        <mobiscroll.Button onClick={this.validateAllFields} icon="checkmark">Sign Up</mobiscroll.Button>
                    </div>
                </mobiscroll.Form>

                <mobiscroll.Widget 
                    ref="success"
                    focusOnClose={false}
                    buttons={[{
                        text: 'Log in',
                        handler: 'set'
                    }]}
                    >
                    <h3>Thank you for registering</h3>
                    <p>You have successfully signed up as a user!</p>
                </mobiscroll.Widget>
            </div>
        );
    }
    
    // set up validation
    initValidation = () => {
        this.validationSettings = {
            username: [this.requiredCheck, this.minlengthCheck.bind(this, 2)],
            email: [this.requiredCheck, this.emailCheck],
            password: [this.requiredCheck, this.minlengthCheck.bind(this, 6)],
            gender: [this.requiredCheck],
            bio: [this.requiredCheck, this.minlengthCheck.bind(this, 20)],
        }
    }
    
    // validation
    validateField = (key, value) => {
        var invalid = false;
        if (this.validationSettings[key]!== undefined) {
            for(var i = 0; i < this.validationSettings[key].length; i++) { // interate on validators
                var validator = this.validationSettings[key][i];
                invalid = invalid || validator.call(this, value);
            }
        }
        var errorUpd = {};
        errorUpd[key] = {$set: invalid};
        return errorUpd;
    }
    
    validateAllFields = () => {
        var errorsUpd = {},
            allValid = true;
        for (var key in this.state.formValues) {
            errorsUpd[key] = this.validateField(key, this.state.formValues[key])[key];
            allValid = allValid && !errorsUpd[key].$set;
        }
        
        if (allValid) {
            this.refs.success.instance.show();
        }
        
        this.setState(React.addons.update(this.state, {formErrors: errorsUpd}));
    }
    
    // validation check functions
    requiredCheck = (value) => {
        if (!!value) {
            return false;
        } else {
            return 'This field is required';
        }
    }
    
    minlengthCheck = (minlength, value) => {
        if (!value || value.length < minlength) {
            return 'It should be at least ' + minlength + ' characters long';
        }
        else {
            return false;
        }
    }
    
    emailCheck = (value) => {
        if (/^\w+@\w+\.\w{2,3}$/.test(value)) {
            return false;
        } else {
            return 'This is not a valid email';
        }
    }
}

<div id="content"></div>

Forms - Slider

Choose demo
class FormsDemo extends React.Component {
    constructor(props) {
        super(props);

        this.state = {
            sound: 30,
            alarm: 50,
            weight: 130,
            price: [100, 400],
            steps: 50,
            multi: [100, 500, 2000, 2500]
        };
    }
    
    render() {
        return (
			<mobiscroll.Form theme="" lang="">
			    <div className="mbsc-form-group">
    				<div className="mbsc-form-group-title">Sound settings</div>
    				<label>
    					<mobiscroll.Slider theme="" value={this.state.sound} onChange={this.setSound} data-icon='{ "left": "volume-mute2", "right": "volume-high" }' />
    				</label>
    				<label>
    					<mobiscroll.Slider theme="" value={this.state.alarm} onChange={this.setAlarm} data-icon="alarm2" disabled />
    				</label>
    					
    				<mobiscroll.Slider theme="" value={this.state.weight} onChange={this.setWeight} min={80} max={300} data-val="left" data-template="{value} lbs" data-highlight="false" >Weight</mobiscroll.Slider>

    				<mobiscroll.Slider theme="" value={this.state.price} onChange={this.setPrice} min={0} max={500} step={25} data-tooltip="true" data-step-labels="[0, 100, 200, 300, 400, 500]">Price</mobiscroll.Slider>

					<mobiscroll.Slider theme="" value={this.state.steps} onChange={this.setSteps} min={0} max={100} step={25} data-step-labels="[0, 25, 50, 75, 100]" >Steps</mobiscroll.Slider>

					<mobiscroll.Slider theme="" value={this.state.multi} onChange={this.setMulti} min={0} max={3000} data-tooltip="true" data-step-labels="[0, 500, 1000, 1500, 2000, 2500, 3000]" >Multiple</mobiscroll.Slider>

    			</div>
    			<div className="mbsc-form-group">
    				<div className="mbsc-form-group-title">Slider colors</div>
    				
    				<mobiscroll.Slider theme="" value={45} color="primary" data-tooltip="true">Primary</mobiscroll.Slider>
    				<mobiscroll.Slider theme="" value={45} color="secondary" data-tooltip="true">secondary</mobiscroll.Slider>
    				<mobiscroll.Slider theme="" value={45} color="success" data-tooltip="true">success</mobiscroll.Slider>
    				<mobiscroll.Slider theme="" value={45} color="danger" data-tooltip="true">danger</mobiscroll.Slider>
    				<mobiscroll.Slider theme="" value={45} color="warning" data-tooltip="true">warning</mobiscroll.Slider>
    				<mobiscroll.Slider theme="" value={45} color="info" data-tooltip="true">info</mobiscroll.Slider>
    			</div>
			</mobiscroll.Form>
        );
    }
    
    setSound = (value) => {
        this.setState({
            sound: value
        });
    }
    
    setAlarm = (value) => {
        this.setState({
            alarm: value
        });
    }
    
    setWeight = (value) => {
        this.setState({
            weight: value
        });
    }
    
    setPrice = (values) => {
        this.setState({
            price: values
        });
    }
    
    setSteps = (value) => {
        this.setState({
            steps: value
        });
    }
    
    setMulti = (values) => {
        this.setState({
            multi: values
        });
    }
}

<div id="content"></div>

Forms - Stepper

Choose demo
class FormsDemo extends React.Component {
    constructor(props) {
        super(props);

        this.state = {
            adults: 1,
            children: 0,
            infants: 0,
            allowOverweight: false,
            weight: 30
        };
    }
    
    adultChange = (value) => {
        this.setState({ adults: value });
    }
    
    childrenChange = (value) => {
        this.setState({ children: value });
    }
    
    infantChange = (value) => {
        this.setState({ infants: value });
    }
    
    overwChange = (event) => {
        this.setState({ allowOverweight: event.target.checked });
    }
    
    render() {
        return (
            <mobiscroll.Form theme="" lang="">
                <div className="mbsc-form-group">
                    <div className="mbsc-form-group-title">Passengers</div>
                    <mobiscroll.Stepper theme="" type="number" data-role="stepper" min={1} max={15} value={this.state.adults} onChange={this.adultsChange}>
                        <label>Adults</label>
                        <span className="mbsc-desc">From 14 years</span>
                    </mobiscroll.Stepper>
    
                    <mobiscroll.Stepper theme="" type="number" data-role="stepper" max={15} data-val="left" value={this.state.children} onChange={this.childrenChange}>
                        <label>Children</label>
                        <span className="mbsc-desc">2-14 years</span>
                    </mobiscroll.Stepper>
    
                    <mobiscroll.Stepper theme="" type="number" data-role="stepper" data-val="left" max={10} value={this.state.infants} onChange={this.infantChange}>
                        <label>Infant</label>
                        <span className="mbsc-desc">0-2 years</span>
                    </mobiscroll.Stepper>
                </div>
                <div className="mbsc-form-group">
                    <div className="mbsc-form-group-title">Luggage</div>
    
                    <label>
                        Allow overweight luggage
                        <input type="checkbox" className="md-allow" checked={this.state.allowOverweight} onChange={this.overwChange} />
                    </label>
    
                    <mobiscroll.Stepper theme="" type="number" disabled={!this.state.allowOverweight} value={this.state.weight} className="md-luggage" data-role="stepper" data-val="left" min={30} max={80} step={5}>
                        <label>Weight</label>
                        <span className="mbsc-desc">(kg)</span>
                    </mobiscroll.Stepper>
                </div>
                <div className="mbsc-form-group">
                    <div className="mbsc-form-group-title">Stepper colors</div>
                    <mobiscroll.Stepper theme="" value={100} min={-500} max={500} step={100} color="primary">
                        Primary
                    </mobiscroll.Stepper>
                    <mobiscroll.Stepper theme="" value={100} min={-500} max={500} step={100} color="secondary">
                        Secondary
                    </mobiscroll.Stepper>
                    <mobiscroll.Stepper theme="" value={100} min={-500} max={500} step={100} color="success">
                        Success
                    </mobiscroll.Stepper>
                    <mobiscroll.Stepper theme="" value={100} min={-500} max={500} step={100} color="danger">
                        Danger
                    </mobiscroll.Stepper>
                    <mobiscroll.Stepper theme="" value={100} min={-500} max={500} step={100} color="warning">
                        Warning
                    </mobiscroll.Stepper>
                    <mobiscroll.Stepper theme="" value={100} min={-500} max={500} step={100} color="info">
                        Info
                    </mobiscroll.Stepper>
                </div>
            </mobiscroll.Form>
        );
    }    
}









<div id="content"></div>

Forms - Progress

Choose demo
class FormsDemo extends React.Component {
    constructor(props) {
        super(props);

        this.state = {
            downloadVal: 0,
            updateVal: 0,
            uploadVal: 0,
            nextVal: 0,
            colorVal: 56
        };
    }
    
    downloadInterval = null;
    download = () => {
        clearInterval(this.downloadInterval);
        var i = 0,
			that = this;
			
        this.downloadInterval = setInterval(function () {
            if (i == 100) {
                clearInterval(that.downloadInterval);
            }
            i+=5;
            that.setState ({
                downloadVal: i
            });
        }, 600);
    }
    
    update = () => {
        if (this.state.updateVal >= 100) {
            this.setState({
                updateVal: 0
            });
        } else {
            this.setState({
                updateVal: this.state.updateVal + 25
            });
        }
    }
    
    uploadInterval = null;
    upload = () => {
        clearInterval(this.uploadInterval);
        var i = 0,
            that = this;
        this.setState({
            uploadVal: 0
        });
		this.uploadInterval = setInterval(function () {
            console.log('uploadInterval() ' + that.state.uploadVal);
            if (that.state.uploadVal >= 100) {
                clearInterval(that.uploadInterval);
            }

            i += 17;

            that.setState({
                uploadVal: i
            });
        }, 1000);
    }
    
    next = () => {
        if (this.state.nextVal >= 100) {
            this.setState({
                nextVal: 0
            });
        } else {
            this.setState({
                nextVal: this.state.nextVal + 50
            });
        }
    }
    
    render() {
        return (
            <mobiscroll.Form theme="" lang="">
                <div className="mbsc-form-group">
                    <div className="mbsc-form-group-title">Downloading file</div>
                    <label>
                        <mobiscroll.Progress
                            ref="download"
                            theme="mobiscroll"
                            value={this.state.downloadVal}
                            max={100}
                            data-icon='{ "left": "cloud-download" }'
                            data-val="right"
                        />
                    </label>
                </div>
                <div className="mbsc-form-group mbsc-btn-group">
                    <button onClick={this.download} type="button" className="mbsc-btn md-restart">Restart download</button>
                </div>
                <div className="mbsc-form-group">
                    <label>
                        <mobiscroll.Progress 
                            theme="mobiscroll"
                            value={this.state.updateVal} 
                            max={100} 
                            data-step-labels="[0, 25, 50, 75, 100]"
                        />
                    </label>
                </div>
                <div className="mbsc-form-group mbsc-btn-group">
                    <button onClick={this.update} type="button" className="mbsc-btn md-update">Update progress</button>
                </div>
                <div className="mbsc-form-group">
                    <div className="mbsc-form-group-title">Cloud upload</div>
                    <label className="md-upload">
                        <mobiscroll.Progress 
        					theme="mobiscroll"
                            value={this.state.uploadVal}
                            max={100}
                            data-step-labels="[0, 33, 66, 100]"
                            data-icon='{ "left": "cloud-upload" }'
                        />
                    </label>
                </div>
                <div className="mbsc-form-group mbsc-btn-group">
                    <button onClick={this.upload} type="button" className="mbsc-btn md-restart-up">Restart upload</button>
                </div>
                <div className="mbsc-form-group">
                    <div className="mbsc-form-group-title">Checkout process</div>
                    <label className="md-demo">
                        <mobiscroll.Progress
    						theme="mobiscroll"
                            value={this.state.nextVal}
                            max={100}
                            data-step-labels="[0, 50, 100]"
                        />
                    </label>
                </div>
                <div className="mbsc-form-group mbsc-btn-group">
                    <button onClick={this.next} type="button" className="mbsc-btn md-next-step">Next step</button>
                </div>
                <div className="mbsc-form-group">
                    <div className="mbsc-form-group-title">Progress colors</div>
 
                    <mobiscroll.Progress
                        value={this.state.colorVal}
                        color="primary"
                    >
                        Primary
                    </mobiscroll.Progress>
        
                    <mobiscroll.Progress
                        value={this.state.colorVal}
                        color="secondary"
                    >
                        Secondary
                    </mobiscroll.Progress>
                    
                    <mobiscroll.Progress
                        value={this.state.colorVal}
                        color="success"
                    >
                        Success
                    </mobiscroll.Progress>
                    
                    <mobiscroll.Progress
                        value={this.state.colorVal}
                        color="danger"
                    >
                        Danger
                    </mobiscroll.Progress>
                    
                    <mobiscroll.Progress
                        value={this.state.colorVal}
                        color="warning"
                    >
                        Warning
                    </mobiscroll.Progress>
                    
                    
                    <mobiscroll.Progress
                        value={this.state.colorVal}
                        color="info"
                    >
                        Info
                    </mobiscroll.Progress>
            
                </div>
                
            </mobiscroll.Form>
        );
    }
    
    componentDidMount() {
        var i,
            uploadList = ['1MB', '5MB', '10MB', '50MB'],
            uploadLabels = document.querySelectorAll('.md-upload .mbsc-progress-step-label'),
            labelList = ['Cart', 'Pay', 'Enjoy'],
            checkoutLabels = document.querySelectorAll('.md-demo .mbsc-progress-step-label');

        // replace upload progress labels
        for (i = 0; i < uploadLabels.length; ++i) {
            uploadLabels[i].innerHTML = uploadList[i];
        }

        // replace checkout progress labels
        for (i = 0; i < checkoutLabels.length; ++i) {
            checkoutLabels[i].innerHTML = labelList[i];
        }

        this.download();
        //this.upload();
    }
}

<div id="content"></div>

Forms - Rating

Choose demo
class FormsDemo extends React.Component {
    render() {
        return (
			<mobiscroll.Form lang="" theme="">
			    <div className="mbsc-form-group">
    				<div className="mbsc-form-group-title">Rating</div>
					<mobiscroll.Rating theme="">
					    Simple rating
					</mobiscroll.Rating>
					<mobiscroll.Rating theme="" data-empty="heart2" data-filled="heart" value={3}>
					    Custom icons
					</mobiscroll.Rating>
					<mobiscroll.Rating theme="" step={.5} min={0} max={3} value={1.5}>
					    Half steps
					</mobiscroll.Rating>
					<mobiscroll.Rating theme="" data-val="right" max={6} value={4} data-template="{value}/{max}">
					    Value
					</mobiscroll.Rating>
					<mobiscroll.Rating theme="" disabled>
					    Disabled
					</mobiscroll.Rating>
    			</div>
    			<div className="mbsc-form-group">
    				<div className="mbsc-form-group-title">Rating colors</div>
					<mobiscroll.Rating theme="" color="primary">
					    Primary
					</mobiscroll.Rating>
					<mobiscroll.Rating theme="" color="secondary">
					    Secondary
					</mobiscroll.Rating>
					<mobiscroll.Rating theme="" color="success">
					    Success
					</mobiscroll.Rating>
					<mobiscroll.Rating theme="" color="danger">
					    Danger
					</mobiscroll.Rating>
					<mobiscroll.Rating theme="" color="warning">
					    Warning
					</mobiscroll.Rating>
					<mobiscroll.Rating theme="" color="info">
					    Info
					</mobiscroll.Rating>
    			</div>
			</mobiscroll.Form>
        );
    }
}

<div id="content"></div>

Forms - Segmented

Choose demo
class FormsDemo extends React.Component {
    render() {
        return (
            <div>
                <mobiscroll.Form theme="" lang="">
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Single select</div>
                        <mobiscroll.Segmented name="range" value="day">
                            Day
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented name="range" value="week" defaultChecked>
                            Week
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented name="range" value="range" value="month">
                            Month
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented name="range" value="year">
                            Year
                        </mobiscroll.Segmented>
                    </div>
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Multiple select</div>
    
                        <mobiscroll.Segmented name="week" value="su" multiSelect={true} disabled>
                            S
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented name="week" value="mo" multiSelect={true} defaultChecked>
                            M
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented name="week" value="te" multiSelect={true}>
                            T
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented name="week" value="we" multiSelect={true}>
                            W
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented name="week" value="th" multiSelect={true} defaultChecked>
                            T
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented name="week" value="fr" multiSelect={true}>
                            F
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented name="week" value="sa" multiSelect={true} disabled>
                            S
                        </mobiscroll.Segmented>
                    </div>
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Text and Icon</div>
    
                        <mobiscroll.Segmented name="app" icon="material-star" defaultChecked>
                            Featured
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented name="app" icon="material-explore">
                            Explore
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented name="app" icon="material-system-update">
                            Updates
                        </mobiscroll.Segmented>
                    </div>
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Icon</div>
    
                        <mobiscroll.Segmented name="settings" icon="fa-mail-reply" />
                        <mobiscroll.Segmented name="settings" icon="fa-retweet" />
                        <mobiscroll.Segmented name="settings" icon="star3" defaultChecked />
                        <mobiscroll.Segmented name="settings" icon="cogs" />
                    </div>
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Disabled</div>
    
                        <mobiscroll.Segmented name="org" disabled defaultChecked>
                            Idividual
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented name="org" disabled>
                            Team
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented name="org" disabled>
                            Company
                        </mobiscroll.Segmented>
                    </div>
                    <div className="mbsc-form-group">
                        <div className="mbsc-form-group-title">Segmented colors</div>
                        <mobiscroll.Segmented name="group-primary" color="primary" icon="home" defaultChecked>
                            Desktop
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented name="group-primary" color="primary" icon="mobile">
                            Mobile
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented name="group-primary" color="primary" icon="cloud-upload">
                            Cloud
                        </mobiscroll.Segmented>
                        
                        <mobiscroll.Segmented color="secondary" icon="home" name="group-secondary" defaultChecked>
                            Desktop
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented color="secondary" icon="mobile" name="group-secondary">
                            Mobile
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented color="secondary" icon="cloud-upload" name="group-secondary">
                            Cloud
                        </mobiscroll.Segmented>
                        
                        <mobiscroll.Segmented color="success" icon="home" name="group-success" defaultChecked>
                            Desktop
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented color="success" icon="mobile" name="group-success">
                            Mobile
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented color="success" icon="cloud-upload" name="group-success">
                            Cloud
                        </mobiscroll.Segmented>
                        
                        <mobiscroll.Segmented color="danger" icon="home" name="group-danger" defaultChecked>
                            Desktop
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented color="danger" icon="mobile" name="group-danger">
                            Mobile
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented color="danger" icon="cloud-upload" name="group-danger">
                            Cloud
                        </mobiscroll.Segmented>
                        
                        <mobiscroll.Segmented color="warning" icon="home" name="group-warning" defaultChecked>
                            Desktop
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented color="warning" icon="mobile" name="group-warning">
                            Mobile
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented color="warning" icon="cloud-upload" name="group-warning">
                            Cloud
                        </mobiscroll.Segmented>
                        
                        <mobiscroll.Segmented color="info" icon="home" name="group-info" defaultChecked>
                            Desktop
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented color="info" icon="mobile" name="group-info">
                            Mobile
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented color="info" icon="cloud-upload" name="group-info">
                            Cloud
                        </mobiscroll.Segmented>
                    </div>
                </mobiscroll.Form>
        </div>
        );
    }    
}

<div id="content"></div>

Forms - Date Slider

Choose demo
class FormsDemo extends React.Component {
    getInitialState = () => {
        var d = new Date(),
            diff = d.getDate() - d.getDay();
        this.nextSunday = new Date(d.setDate(diff + 7));

        return {
            selectedItem: 0,
            nextMeeting:  this.monthNames[this.nextSunday.getMonth()] + " " + this.nextSunday.getDate()
        };
    }
    
    nextSunday: null,
    monthNames: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
    componentDidMount = () => {
        var labels = ReactDOM.findDOMNode(this.refs.mySlider).parentNode.querySelectorAll('.mbsc-progress-step-label'),
            dayNames = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];            
        for (var i = 0; i < labels.length; ++i) {
            labels[i].innerHTML = dayNames[i];
        }
    }
    
    onSliderChange = (value) => {
        var meeting = new Date(this.nextSunday);
        meeting.setDate(meeting.getDate() + value);

        this.setState({ 
            selectedItem: value,
            nextMeeting: this.monthNames[meeting.getMonth()] + " " + meeting.getDate()
        });
    }
    
    render() {
        return (
			<mobiscroll.Form theme="" lang=""  className="md-dateslider">
				<div className="mbsc-padding md-header">
					Pick the day for your next visit
				</div>
                <div className="mbsc-form-group-inset">
    				<label>    
    					<mobiscroll.Slider 
                            ref="mySlider"
    						value={this.state.selectedItem} 
                            onChange={this.onSliderChange}
    						data-step-labels="[0, 1, 2, 3, 4, 5, 6]"
    						step="1"
                            min="0"
                            max="6"
    						theme=""
                            lang=""
    						highlight={false}
    					/>
    				</label>
				</div>
				<div className="mbsc-padding">
					<div className="md-check-cont"><span className="md-check mbsc-ic mbsc-ic-material-check"></span></div>
					We’ll see each other next week on
					<div><a className="md-date">{this.state.nextMeeting}</a> @ 5PM</div>
				</div>
			</mobiscroll.Form>
        );
    }    
}

<div id="content"></div>
.mbsc-padding.md-header {
    font-size: 1.25em;
    font-weight: 400;
    padding: .8em .8em .4em .8em;
}

.md-dateslider .mbsc-padding {
    text-align: center;
}

.md-check-cont {
    padding: 8px 0 16px 0;
}

.md-check {
    display: inline-block;
    width: 32px;
    height: 32px;
    font-size: 26px;
    padding: .2em;
    line-height: 23px;
    border-radius: 33px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.demo-theme-mobiscroll .md-check {
    background: #4ECCC4;
    color: #f7f7f7;
}

.demo-theme-mobiscroll-dark .md-check {
    background: #4ECCC4;
    color: #263238;
}

.demo-theme-material .md-check {
    background: #009688;
    color: #eee;
}

.demo-theme-material-dark .md-check {
    background: #81ccc4;
    color: #f7f7f7;
}

.demo-theme-ios .md-check {
    background: #1272dc;
    color: #f5f5f5;
}

.demo-theme-ios-dark .md-check {
    background: #ff8400;
    color: #1a1a1a;
}

.demo-theme-android-holo .md-check {
    background: #31c6e7;
    color: #000;
}

.demo-theme-android-holo-light .md-check {
    background: #31c6e7;
    color: #f5f5f5;
}

.demo-theme-wp .md-check {
    background: #1a9fe0;
    color: #000;
}

.demo-theme-wp-light .md-check {
    background: #1a9fe0;
    color: #fff;
}

Forms - Log in

Choose demo
class FormsDemo extends React.Component {
    constructor(props) {
        super(props);

        this.state = {
            isLogin: false,
            btnText: 'Sign in',
            signup: "Don't have an account yet? Sign up.",
            email: '',
            emailValid: true,
            emailError: '',
            pass: '',
            passValid: true,
            passError: '',
            submitted: false
        };
    }
    
    emailChange = (event) => {
        var invalid = this.validateEmail(event.target.value);
        this.setState({
            email: event.target.value,
            emailValid: !this.state.submitted || !invalid,
            emailError: invalid || ''
        });
    }
    
    validateEmail = (email) => {
        if (email) {
            if (/[a-z]+@[a-z]+\.[a-z]+/.test(email)) {
                return null;
            } else {
                return "Invalid email";
            }
        } else {
            return "Email required";
        }
    }
    
    passChange = (event) => {
        var invalid = this.validatePass(event.target.value);
        this.setState({
            pass: event.target.value,
            passValid: !this.state.submitted || !invalid,
            passError: invalid || ''
        });
    }
    
    validatePass = (pass) => {
        if (pass) {
            if (pass.length < 6) {
                return 'At least 6 characters required';
            } else {
                return null;
            }
        } else {
            return 'Password required';
        }
    }
    
    signUp = (event) => {
        event.preventDefault();
        this.setState({
            signup: this.state.isLogin ? "Don't have an account yet? Sign up." : "Already have an account?",
            btnText: this.state.isLogin ? "Sign in" : "Sign up",
            isLogin: !this.state.isLogin
        });
    }
    
    password = (event) => {
        event.preventDefault();
    }
    
    submit = (event) => {
        event.preventDefault();
        if (this.state.submitted && this.state.emailValid && this.state.passValid) {
            mobiscroll.toast({ message: (this.state.isLogin ? 'Login' : 'Signup') + ' success!'});
        } else {
            var emailInvalid = this.validateEmail(this.state.email);
            var passInvalid = this.validatePass(this.state.pass);
            this.setState({
                submitted: true,
                emailValid: !emailInvalid,
                emailError: emailInvalid || '',
                passValid: !passInvalid,
                passError: passInvalid || ''
            });
        }
    }
    
    render() {
        return (
            <mobiscroll.Form 
                theme=""
                lang=""
                className="md-login-form" 
                action="/login" 
                method='POST'
                onSubmit={this.submit}
                novalidate
            >
                <div className="md-logo micons icon-mbsc-logo"></div>
                <div className="mbsc-form-group-inset">
                    <mobiscroll.Input type="email" name="Email" placeholder="Email" value={this.state.email} onChange={this.emailChange} valid={this.state.emailValid} errorMessage={this.state.emailError} />
                    <mobiscroll.Input type="password" name="Password" placeholder="Password" passwordToggle={true} icon="none" iconAlign="right" value={this.state.pass} onChange={this.passChange} valid={this.state.passValid} errorMessage={this.state.passError} />
                </div>
                <div className="mbsc-form-group-inset mbsc-padding mbsc-align-center">
                    <a href="#" onClick={this.signUp}>{this.state.signup}</a>
                    <br/><br/>
                    <a href="#" onClick={this.password}>Forgot password?</a>
                </div>
                <div className="mbsc-form-group-inset mbsc-padding">
                    <mobiscroll.Button type="submit" block={true}>{this.state.btnText}</mobiscroll.Button>
                </div>
            </mobiscroll.Form>
        );
    }    
}

<div id="content"></div>
.md-login-form .md-logo {
    display: inline-block;
    width: 100%;
    font-size: 80px;
    text-align: center;
    height: 46px;
    margin: 130px 0 30px 0;
    color: #1c75bc;
}

Forms - Checklist

Choose demo
class FormsDemo extends React.Component {
    render() {
        return (
            <mobiscroll.Form theme="" lang="" className="md-food-cl">
                <div className="mbsc-form-group">
                    <div className="mbsc-form-group-title">Category</div>
                    <mobiscroll.Checkbox defaultChecked>
                        <span className="mbsc-label"><span className="micons icon-starter md-food-ic"> </span>starter</span>
                    </mobiscroll.Checkbox>
                    <mobiscroll.Checkbox defaultChecked>
                        <span className="mbsc-label"><span className="micons icon-main md-food-ic"></span>main</span>
                    </mobiscroll.Checkbox>
                    <mobiscroll.Checkbox>
                        <span className="mbsc-label"><span className="micons icon-dessert md-food-ic"></span>dessert</span>
                    </mobiscroll.Checkbox>
                    <mobiscroll.Checkbox>
                        <span className="mbsc-label"> <span className="micons icon-snack md-food-ic"></span>snack</span>
                    </mobiscroll.Checkbox>
                </div>
                <div className="mbsc-form-group">
                    <div className="mbsc-form-group-title">Main Ingredient</div>
    
                    <mobiscroll.Checkbox defaultChecked>
                        <span className="mbsc-label"><span className="micons icon-poultry md-food-ic"></span>poultry</span>
                    </mobiscroll.Checkbox>
                    <mobiscroll.Checkbox defaultChecked>
                        <span className="mbsc-label"><span className="micons icon-beef md-food-ic"></span>beef</span>
                    </mobiscroll.Checkbox>
                    <mobiscroll.Checkbox defaultChecked>
                        <span className="mbsc-label"><span className="micons icon-pork md-food-ic"></span>pork</span>
                    </mobiscroll.Checkbox>
                    <mobiscroll.Checkbox defaultChecked>
                        <span className="mbsc-label"><span className="micons icon-seafood md-food-ic"></span>seafood</span>
                    </mobiscroll.Checkbox>
                    <mobiscroll.Checkbox>
                        <span className="mbsc-label"><span className="micons icon-vegetarian md-food-ic"></span>vegetarian</span>
                    </mobiscroll.Checkbox>
                    <mobiscroll.Checkbox>
                        <span className="mbsc-label"><span className="micons icon-vegan md-food-ic"></span>vegan</span>
                    </mobiscroll.Checkbox>
                </div>
            </mobiscroll.Form>
        );
    }
}

<div id="content"></div>

Forms - Wishlist

Choose demo
class FormsDemo extends React.Component {
	constructor(props) {
        super(props);

		this.state = {
			addedToWishlist: false
		};
    }
    
    toggleWishlist = () => {
        var added = !this.state.addedToWishlist;
        this.setState({ addedToWishlist: added });
        mobiscroll.toast({
            message: added ? 'Added to wishlist' : 'Removed from wishlist'
        });
    }
    
    render() {
        return (
            <mobiscroll.Form theme="" lang="" className="md-wishlist">
                <img src="images/nike.png" className="md-wishlist-img"/>
                <div className="mbsc-padding">
                    <div className="md-title">Nike Women's Air Relentless 3 Running </div>
                    <div className="md-desc md-center">
                        <div>Great lightweight pattern with a midfoot TPU panel for lockdown. </div>
                        <div>Phylite midsole for a lightweight ride and air unit in the heel offer the right blend of cushioning and a smooth ride. </div>
                        <div>BRS 1000 outsole in the crash pad for durability.</div>
                    </div>

                    <div className="md-price md-center"><span className="md-old-price">$110</span> <span className="md-new-price">$64.99</span></div>

                    <mobiscroll.Button onClick={this.toggleWishlist} block={true}>
                        <span className={'mbsc-btn-ic mbsc-ic ' + (this.state.addedToWishlist ? 'mbsc-ic-minus' : 'mbsc-ic-plus')}></span>
                        <span className="md-wish-text">{this.state.addedToWishlist ? 'Remove from' : 'Add to'} wishlist</span>
                    </mobiscroll.Button>
                    <mobiscroll.Button block={true} onClick={this.addToCart}>Add to cart</mobiscroll.Button>
                </div>
            </mobiscroll.Form>
        );
    }    
}

<div id="content"></div>
.md-wishlist {
    font-size: 16px;
}

.md-wishlist .md-wishlist-img {
    width: 280px;
    padding-top: 3em;
    margin: 0 auto;
    display: block;
}

.md-wishlist .md-title {
    text-transform: uppercase;
    text-align: center;
    font-size: 1.4em;
    padding: .5em 0;
}

.md-wishlist .md-price {
    font-size: 20px;
    padding-bottom: 1em;
    text-align: center;
}

.md-wishlist .md-price .md-new-price {
    color: red;
}

.md-wishlist .md-price .md-old-price {
    text-decoration: line-through;
}

.md-wishlist .md-desc {
    padding-bottom: 2em;
    font-size: 14px;
    color: #a0a0a0;
}

.md-wishlist .md-desc div {
    padding-top: .75em;
}

.md-wishlist .md-center {
    text-align: center;
}

.md-wishlist .md-wish.mbsc-btn {
    margin-bottom: 1em;
}

Forms - Sign up

Choose demo
class FormsDemo extends React.Component {
    constructor(props) {
        super(props);

        this.state = {
            username: '',
            email: '',
            password: '',
            nameValid: true,
            nameError: '',
            emailValid: true,
            emailError: '',
            passValid: true,
            passError: ''
        };
    }
    
    changeUsername = (event) => {
        var username = event.target.value,
            valid = true,
            error = '';
        if (!username) {
            username = '';
            valid = false;
            error = 'This field is required';
        } else if (username.length < 4) {
            valid = false;
            error = 'Please enter at leaset 4 characters';
        }

        this.setState({
            username: username,
            nameValid: valid,
            nameError: error
        });
    }
    
    changeEmail = (event) => {
        var email = event.target.value,
            valid = true,
            error: '';
        if (!email) {
            email = '';
            valid = false;
            error = 'This field is required';
        } else if (!/^[a-z0-9]+@[a-z]+$/.test(email)) {
            valid = false;
            error = 'Please provide a valid email address';
        }
        this.setState({
            email: email,
            emailValid: valid,
            emailError: error
        });
    }
    
    changePassword = (event) => {
        var pass = event.target.value,
            valid = true,
            error: '';
        if (!pass) {
            email = '';
            valid = false;
            error = 'This field is required';
        } else if (pass.length < 6) {
            valid = false;
            error = 'Password should be at least 6 characters';
        }
        this.setState({
            password: pass,
            passValid: valid,
            passError: error
        });
    }
    
    validate = (event) => {
        var nameEntered = !!this.state.username, 
            emailEntered = !!this.state.email, 
            passEntered = !!this.state.password;
        this.setState({
            nameValid: nameEntered && this.state.nameValid,
            nameError: nameEntered ? this.state.nameError : 'This field is required',
            emailValid: emailEntered && this.state.emailValid,
            emailError: emailEntered ? this.state.emailError : 'This field is required',
            passValid: passEntered && this.state.passValid,
            passError: passEntered ? this.state.passError : 'This field is required'
        }); 
    }
    
    render() {
        return (
            <mobiscroll.Form theme="" lang="" className="md-signup-rules" noValidate={true}>
                <div className="mbsc-form-group-inset">
                    <div className="mbsc-form-group-title md-signup-title">Sign Up</div>
    
                    <mobiscroll.Input 
                        value={this.state.username} 
                        onChange={this.changeUsername}
                        error={!this.state.nameValid}
                        errorMessage={this.state.nameError}
                        placeholder="Name"
                        name="username" />
                        
                    <mobiscroll.Input 
                        type="email"
                        value={this.state.email}
                        onChange={this.changeEmail}
                        error={!this.state.emailValid}
                        errorMessage={this.state.emailError}
                        placeholder="Email"
                        name="email" />

                    <mobiscroll.Input
                        type="password"
                        value={this.state.password}
                        onChange={this.changePassword}
                        error={!this.state.passValid}
                        errorMessage={this.state.passError}
                        passwordToggle={true}
                        placeholder="Password"
                        name="password" />
                </div>
                <div className="mbsc-form-group-inset">
                    <div className="mbsc-padding">
                        <h6 className="mbsc-desc">Use lowercase and uppercase characters </h6>
                        <h6 className="mbsc-desc">Length of password should be at least 6 characters</h6>
                    </div>
                    <div className="mbsc-btn-group">
                        <mobiscroll.Button block={true} onClick={this.validate}>Sign Up</mobiscroll.Button>
                    </div>
                </div>
            </mobiscroll.Form>
        );
    }    
}

<div id="content"></div>

Forms - Create account

Choose demo
class FormsDemo extends React.Component {
    render() {
        return (
            <div>
                <mobiscroll.Form 
                    theme=""
                    lang=""
                    className="md-create-account"
                >
                    <div className="md-chart-pic"></div>

                    <div className="md-cac-title mbsc-padding">
                        <h4>Great news, your traffic <br /> is already being tracked</h4>
                        <h4>Continue by creating a new account</h4>
                    </div>
                    <div className="md-cac-cont">
                        <div className="mbsc-form-group-inset">
                            <mobiscroll.Input name="username" placeholder="Name" />
                            <mobiscroll.Input name="email" type="email" placeholder="Email address" />
                            <mobiscroll.Input name="password" type="password" placeholder="Password" passwordToggle={true} />
                        </div>
                        <div className="md-cac-btn mbsc-form-group-inset">
                            <mobiscroll.Button block={true}>Create account</mobiscroll.Button>
                            <mobiscroll.Button block={true} flat={true}>I'll do it later</mobiscroll.Button>
                        </div>
                    </div>
                </mobiscroll.Form>
            </div>
        );
    }    
}

<div id="content"></div>
.md-create-account {
    padding: 0!important;
}

.md-create-account .md-cac-title {
    text-align: center;
    padding-bottom: 3em;
}

.md-create-account .md-cac-title,
.md-create-account .md-cac-cont {
    padding-top: 0;
}

.md-create-account .md-cac-cont {
    padding-bottom: 0;
}

.md-create-account .md-chart-pic {
    background-image: url("/content/img/demos/chart@1x.png");
    height: 150px;
    background-repeat: no-repeat;
    background-position: center;
}

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 144dpi) {
    .md-create-account .md-chart-pic {
        background: url("/Content/img/demos/chart@2x.png") no-repeat center 12px;
        background-size: 109px 81px;
        background-position: center;
    }
}

.md-phone-num .mbsc-np-dsp {
    min-height: 25px;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

Forms - Alert

Choose demo
mobiscroll.settings = {
    theme: '',
    lang: '',
    display: ''
}

class FormsDemo extends React.Component {
    showAlert = () => {
        mobiscroll.alert({
            title: 'Cellular Data is Turned Off for "Safari"',
            message: 'You can turn on cellular data for this app in Settings.',
            callback: function () {
                mobiscroll.toast({
                    message: 'Alert closed'
                });
            }
        });
    }
    
    showConfirm = () => {
        mobiscroll.confirm({
            title: 'Use location service?',
            message: 'Help apps determine location. This means sending anonymous location data, even when no apps are running.',
            okText: 'Agree',
            cancelText: 'Disagree',
            callback: function (res) {
                mobiscroll.toast({
                    message: res ? 'Agreed' : 'Disagreed'
                });
            }
        });
    }
    
    showPrompt = () => {
        mobiscroll.prompt({
            title: 'Sign in to iTunes Store',
            message: 'Enter the Apple ID password for "hello@mobiscroll.com".',
            placeholder: 'Password',
            inputType: 'password',
            callback: function (value) {
                mobiscroll.toast({
                    message: value === null ? 'Cancel was pressed.' : ('The password: ' + value)
                });
            }
        });
    }
    
    render() {
        return (
            <mobiscroll.Form>
                <div className="mbsc-form-group">
                    <div className="mbsc-form-group-title">Alerts</div>
                    <div className="mbsc-btn-group-block">
                        <mobiscroll.Button onClick={this.showAlert}>Alert</mobiscroll.Button>
                        <mobiscroll.Button onClick={this.showConfirm}>Confirm</mobiscroll.Button>
                        <mobiscroll.Button onClick={this.showPrompt}>Prompt</mobiscroll.Button>
                    </div>
                </div>
            </mobiscroll.Form>
        );
    }    
}

<div id="content"></div>

Forms - Notifications

Choose demo
mobiscroll.settings = {
    theme: '',
    lang: '',
    display: ''
}

class FormsDemo extends React.Component {
    showBottomToast = () => {
        mobiscroll.toast({
            message: 'Message sent'
        });
    }

    showTopToast = () => {
        mobiscroll.toast({
            message: 'Message sent',
            display: 'top'
        });
    }

    showPrimaryToast = () => {
        mobiscroll.toast({
            message: 'Message sent',
            color: 'primary'
        });
    }

    showSecondaryToast = () => {
        mobiscroll.toast({
            message: 'Message sent',
            color: 'secondary'
        });
    }

    showSuccessToast = () => {
        mobiscroll.toast({
            message: 'Message sent',
            color: 'success'
        });
    }

    showDangerToast = () => {
        mobiscroll.toast({
            message: 'Message sent',
            color: 'danger'
        });
    }

    showWarningToast = () => {
        mobiscroll.toast({
            message: 'Message sent',
            color: 'warning'
        });
    }

    showInfoToast = () => {
        mobiscroll.toast({
            message: 'Message sent',
            color: 'info'
        });
    }

    showBottomSnackbar = () => {
        mobiscroll.snackbar({
            message: 'Your draft has been discarded'
        });
    }

    showTopSnackbar = () => {
        mobiscroll.snackbar({
            message: 'Your draft has been discarded',
            display: 'top'
        });
    }

    showSnackbarAction = () => {
        mobiscroll.snackbar({
            message: 'Connection timed out. Showing limited messages.',
            button: {
                text: 'Retry',
                action: function () {
                    mobiscroll.toast({
                        message: 'Retrying...'
                    });
                }
            }
        });
    }

    showPrimarySnackbar = () => {
        mobiscroll.snackbar({
            message: 'Your draft has been discarded',
            color: 'primary'
        });
    }

    showSecondarySnackbar = () => {
        mobiscroll.snackbar({
            message: 'Your draft has been discarded',
            color: 'secondary'
        });
    }

    showSuccessSnackbar = () => {
        mobiscroll.snackbar({
            message: 'Your draft has been discarded',
            color: 'success'
        });
    }

    showDangerSnackbar = () => {
        mobiscroll.snackbar({
            message: 'Your draft has been discarded',
            color: 'danger'
        });
    }

    showWarningSnackbar = () => {
        mobiscroll.snackbar({
            message: 'Your draft has been discarded',
            color: 'warning'
        });
    }

    showInfoSnackbar = () => {
        mobiscroll.snackbar({
            message: 'Your draft has been discarded',
            color: 'info'
        });
    }

    render() {
        return (
            <mobiscroll.Form>
                <div className="mbsc-form-group">
                    <div className="mbsc-form-group-title">Toast</div>
                    <div className="mbsc-btn-group-block">
                        <mobiscroll.Button onClick={this.showBottomToast}>Bottom toast</mobiscroll.Button>
                        <mobiscroll.Button onClick={this.showTopToast}>Top toast</mobiscroll.Button>
                        <mobiscroll.Button onClick={this.showPrimaryToast}>Primary toast</mobiscroll.Button>
                        <mobiscroll.Button onClick={this.showSecondaryToast}>Secondary toast</mobiscroll.Button>
                        <mobiscroll.Button onClick={this.showSuccessToast}>Success toast</mobiscroll.Button>
                        <mobiscroll.Button onClick={this.showDangerToast}>Danger toast</mobiscroll.Button>
                        <mobiscroll.Button onClick={this.showWarningToast}>Warning toast</mobiscroll.Button>
                        <mobiscroll.Button onClick={this.showInfoToast}>Info toast</mobiscroll.Button>
                    </div>
                </div>
                <div className="mbsc-form-group">
                    <div className="mbsc-form-group-title">Snackbar</div>
                    <div className="mbsc-btn-group-block">
                        <mobiscroll.Button onClick={this.showBottomSnackbar}>Bottom snackbar</mobiscroll.Button>
                        <mobiscroll.Button onClick={this.showTopSnackbar}>Top snackbar</mobiscroll.Button>
                        <mobiscroll.Button onClick={this.showSnackbarAction}>Snackbar with action</mobiscroll.Button>
                        <mobiscroll.Button onClick={this.showPrimarySnackbar}>Primary snackbar</mobiscroll.Button>
                        <mobiscroll.Button onClick={this.showSecondarySnackbar}>Secondary snackbar</mobiscroll.Button>
                        <mobiscroll.Button onClick={this.showSuccessSnackbar}>Success snackbar</mobiscroll.Button>
                        <mobiscroll.Button onClick={this.showDangerSnackbar}>Danger snackbar</mobiscroll.Button>
                        <mobiscroll.Button onClick={this.showWarningSnackbar}>Warning snackbar</mobiscroll.Button>
                        <mobiscroll.Button onClick={this.showInfoSnackbar}>Info snackbar</mobiscroll.Button>
                    </div>
                </div>
            </mobiscroll.Form>
        );
    }
}

<div id="content"></div>

Forms - Note

Choose demo
class NotesDemo extends React.Component {
    render() {
        return <mobiscroll.Page theme="">
            <div className="mbsc-align-center">
                <mobiscroll.Note color="primary">This is a primary note!</mobiscroll.Note>
                <mobiscroll.Note color="secondary">This is a secondary note!</mobiscroll.Note>
                <mobiscroll.Note color="success">This is a success note!</mobiscroll.Note>
                <mobiscroll.Note color="danger">This is a danger note!</mobiscroll.Note>
                <mobiscroll.Note color="warning">This is a warning note!</mobiscroll.Note>
                <mobiscroll.Note color="info">This is a info note!</mobiscroll.Note>
                <mobiscroll.Note color="light">This is a light note!</mobiscroll.Note>
                <mobiscroll.Note color="dark">This is a dark note!</mobiscroll.Note>
            </div>
        </mobiscroll.Page>;
    }
}

<div id="content"></div>
light
dark
light
dark

Looking for something you didn't see or have a sales question?
Ask us about it, we're here to help.

Component license


Purchase component licenses if you are looking for specific funcionality.

Total


All features will be included with the license.

Buy component license

Framework license


Get all 35 components, including with the Framework license.



Mobiscroll for React $395


Use Javascript when building with plain and simple JS. Use jQuery when you have jQuery already included or if you are building with jQuery Mobile. Use AngularJS when building with Angular 1.x or Ionic 1. Use Angular when building with Angular 2/4/5/6 or Ionic 2/3. Use it when you are building your app or website with React.


Buy framework license
See other licensing options

Framework license


Get all 35 components, including with the Framework license.



Mobiscroll for React $395


  • Use it when building with plain and simple JS
  • Compatible with vanilla JS app or frameworks like Vue
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with jQuery and jQuery Mobile
  • Enjoy the familiar API if you already use jQuery
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular JS and Ionic 1
  • For web and mobile apps based on Angular 1.x
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular 2/4/5/6 and Ionic 2/3
  • Visual Studio and VS Code integration
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it when building with React JS
  • Collection of UI components for web and mobile
  • Royalty-free commercial usage
  • Technical support is included with the license
Buy framework license
See other licensing options

Framework license


Select the development framework you are using. Get all 35 components with the license.

Mobiscroll for Javascript
Mobiscroll for jQuery
Mobiscroll for React
Mobiscroll for Angular
Mobiscroll for Angular JS
  • Use it when building with plain and simple JS
  • Compatible with vanilla JS app or frameworks like Vue
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with jQuery and jQuery Mobile
  • Enjoy the familiar API if you already use jQuery
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular JS and Ionic 1
  • For web and mobile apps based on Angular 1.x
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular 2/4/5/6 and Ionic 2/3
  • Visual Studio and VS Code integration
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it when building with React JS
  • Collection of UI components for web and mobile
  • Royalty-free commercial usage
  • Technical support is included with the license
Buy framework license
See other licensing options

Select the framework you are interested in

Javascript
jQuery
Angular
Angular JS
React

Use Javascript when building with plain and simple JS.

Use jQuery when you have jQuery already included or if you are building with jQuery Mobile.

Use AngularJS when building with Angular 1.x or Ionic 1.

Use Angular when building with Angular 2/4/5/6 or Ionic 2/3.

Use it when you are building your app or website with React.

Do you need additional support seats?

The framework license comes with one support seat. ( +$50/seat )

Add the source code?

Price
Buy now
Customize & try demos locally
Please sign in or start a free trial to download

What framework are you using?

Javascript
jQuery
AngularJS
Angular
Ionic
React
Other
Select a framework
Select a framework
Email address
Select a framework

Customize & try demos locally
You can download and use Mobiscroll Forms for Free

What framework are you using?

Javascript
jQuery
AngularJS
Angular
Ionic
React
Other
Select a framework
Install demo in your app
Follow steps to install mobiscroll and use example
Close window

Step 1.

Install the Mobiscroll CLI from npm (skip this step if it's already installed).

Copy command
$ npm install -g @mobiscroll/cli

Step 2.

Run the config command in the root folder of the Ionic project.
You will be prompted to log in with your mobiscroll account (set password here).
If you don't have an app, create a starter with the Ionic CLI $ ionic start myStarterApp tabs

Copy command
$ mobiscroll config ionic
$ mobiscroll config ionic --lite
If your app is using lazy loading, add --lite --lazy and for Ionic Pro run mobiscroll config ionic-pro instead.

Step 3.

Copy the code into your app.
The HTML goes into the markup, the Typescript into the TS file and the CSS into the page stylesheet (scss file).

Copy TS
Copy HTML
Copy CSS

Run ionic serve in the root folder of your app.

Copy command
$ ionic serve

Looking for an already configured app? Download kitchen sink for Ionic

Thanks for downloading
Try and customize the app locally

Extract the zip file and run the project like any Ionic app. Make sure to have Ionic CLI installed and open the terminal in the app root folder.

Step 1. Run in root folder
$ npm install
Step 2. Start the app
$ ionic serve

Let us know if we can help and enjoy!

Change your password
Need to update your password? Enter and hit the button below

You are setting a password for the account

New Password Required Enter at least 6 characters Please avoid dangerous characters like '<' or '&'
Change your password
Need to update your password? Enter and hit the button below

Your password has been changed!

Thanks for downloading
Customize demos locally

Everything is set up so that you can dig in right away and start exploring.

Please extract the zip file and simply open the demos in your favorite browser. For instructions on how to install Mobiscroll in your project follow this guide.


Let us know if we can help and enjoy!

Thanks for downloading
Customize demos locally

The demos are using an in-browser TypeScript transpiler app as base. Please extract the zip file and open the index.html on your local development server.

Alternatively you can use live-server. For installation and usage, open a terminal window and follow these steps.

Step 1. Install live-server
$ npm install -g live-server
Step 2. Start server & run app
$ live-server

Let us know if we can help and enjoy!

Thanks for downloading
Customize demos locally

Everything is set up so that you can dig in right away and start exploring.

We have set up a trial so that you can try the demos locally.

The easiest way to get started is to follow the installation steps and by grabbing the code directly from the demo page. Let us know if we can help and enjoy!

You'll find a fully functional Kitchen-sink Ionic app in the zip file.

Thanks for downloading
Customize demos locally

The demos are using Babel's in-browser ES6 and JSX transformer.

Please extract the zip file and open the demos in your browser. For instructions on how to install Mobiscroll in your project follow this guide.


Let us know if we can help and enjoy!

Demos
Controls
Calendar 19
Cards 10
Color 8
Date & Time 13
Event Calendar 15
Forms 21
Image 5
Listview 17
Measurement 9
Navigation 7
Number 6
Numpad 12
Option List 4
Range 16
Scroller 5
Scrollview 4
Select 11
Styling 4
Timer 4
Timespan 5
Treelist 5
Widget 9
Theme Select
Mobiscroll
Mobiscroll Dark
Material
Material Dark
iOS
iOS Dark
Windows
Windows Dark
Display Mode
Language Locale
See other demos and change options
Theme
Display
Locale
See other demos