Popup for React

Learn about Popup

The popup provides a frame for all your pop-over needs able to render custom content, forms or combined views.

Use it for contextual pop-ups, data-entry or to inform users in a consistent way with all other Mobiscroll component.

Shipping with useful features for a refined UX, including:

  • Usage on mobile and desktop
  • Combined views for various components
  • Initialization on any custom content
  • Consistent styling with all components
  • Flexible button API
  • Full theming support with light & dark variants
  • Modal, popup, bubble and top/bottom display
  • RTL Support
  • Button localization


Popup demos available for other frameworks.

Viewing demos & code for

light
dark

Change the theme setting here

Popup - Basic

Change demo
Basic
React Popup demo with user profile and radio button list return value. Combine different elements into a widget. For React.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

class ListItem extends React.Component {
    render() {
        return <li data-icon={this.props.item.icon}>{this.props.item.text}</li>;
    }
}

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

        this.state = {
            options: [{
                id: 1,
                text: 'Wifi',
                icon: 'connection'
            }, {
                id: 2,
                text: 'Location',
                icon: 'location'
            }, {
                id: 3,
                text: 'Sound',
                icon: 'volume-medium'
            }, {
                id: 4,
                text: 'Rotation',
                icon: 'fa-rotate-left'
            }, {
                id: 5,
                text: 'Bluetooth',
                icon: 'ion-bluetooth'
            }, {
                id: 6,
                text: 'Settings',
                icon: 'cogs'
            }, {
                id: 7,
                text: 'Reading',
                icon: 'user4'
            }, {
                id: 8,
                text: 'Data',
                icon: 'download'
            }, {
                id: 9,
                text: 'Eye comfort',
                icon: 'eye'
            }, {
                id: 10,
                text: 'Screenshot',
                icon: 'mobile'
            }, {
                id: 11,
                text: 'Airplane Mode',
                icon: 'airplane'
            }, {
                id: 12,
                text: 'Alarm',
                icon: 'alarm2'
            }, {
                id: 13,
                text: 'Messages',
                icon: 'material-message'
            }, {
                id: 14,
                text: 'Weather',
                icon: 'meteo-weather4'
            }, {
                id: 15,
                text: 'Camera',
                icon: 'camera'
            }, {
                id: 16,
                text: 'Edit',
                icon: 'material-photo-size-select-large'
            }]
        };
    }
    
    showPopup = () => {
        this.refs.Popup.instance.show();
    }
    
    showList = () => {
        this.refs.list.instance.show();
    }
    
    onSet = (event, inst) => {
        this.setState({ checked: this.state.radio });
    }
    
    myRadioChanged = (event, inst) => {
        this.setState({ radio: event.target.value });
    }
    
    onItemTap = (event, inst) => {
        this.refs.scrollable.instance.hide();
        mobiscroll.toast({
            message: event.target.innerText + ' clicked'
        });
    }
    
    showScrollable = () => {
        this.refs.scrollable.instance.show();
    }
    
    render() {
        return (
            <div>
                <mobiscroll.Form>
                    <mobiscroll.FormGroup>
                        <mobiscroll.FormGroupTitle>Without return value</mobiscroll.FormGroupTitle>
                        <div className="mbsc-btn-group-block">
                            <mobiscroll.Button onClick={this.showPopup}>Show Popup</mobiscroll.Button>
                        </div>
                    </mobiscroll.FormGroup>
                    <mobiscroll.FormGroup>
                        <mobiscroll.FormGroupTitle>With return value</mobiscroll.FormGroupTitle>
                        <label> Update
                            <input onClick={this.showList} value={this.state.checked} placeholder="Please Select..." readOnly />
                        </label>
                    </mobiscroll.FormGroup>
                    <mobiscroll.FormGroup>
                        <mobiscroll.FormGroupTitle>With scrollable content</mobiscroll.FormGroupTitle>
                        <div className="mbsc-btn-group-block">
                            <mobiscroll.Button onClick={this.showScrollable}>Show Popup</mobiscroll.Button>
                        </div>
                    </mobiscroll.FormGroup>
                </mobiscroll.Form>
                <mobiscroll.Popup
                    ref="Popup"
                    display="center"
                >
                    <div className="mbsc-align-center mbsc-padding">
                        <img src="https://img.mobiscroll.com/demos/f1.png" />
                        <h3>Liza Taylor</h3>
                        <p>liza.taylor@mobiscroll.com <br /> (202) 555-0127</p>
                    </div>
                </mobiscroll.Popup>
                <mobiscroll.Popup
                    ref="list"
                    display="center"
                    onSet={this.onSet}
                >
                    <mobiscroll.Form>
                        <mobiscroll.FormGroup inset>
                            <p>Some updates are available for you. <br /> When would you like to install them?</p>
                        </mobiscroll.FormGroup>
                        <mobiscroll.FormGroup inset>
                            <mobiscroll.Radio name="update" value="Right now" checked={this.state.radio === 'Right now'} onChange={this.myRadioChanged}>Right now</mobiscroll.Radio>
                            <mobiscroll.Radio name="update" value="Later on today" checked={this.state.radio === 'Later on today'} onChange={this.myRadioChanged}>Later on today</mobiscroll.Radio>
                            <mobiscroll.Radio name="update" value="Remind me tomorrow" checked={this.state.radio === 'Remind me tomorrow'} onChange={this.myRadioChanged}>Remind me tomorrow</mobiscroll.Radio>
                        </mobiscroll.FormGroup>
                    </mobiscroll.Form>
                </mobiscroll.Popup>
                <mobiscroll.Popup
                    ref="scrollable"
                    display="center"
                    scrollLock={false}
                    cssClass="mbsc-no-padding md-content-scroll"
                    buttons={[]}
                >
                    <mobiscroll.Listview 
                        enhance={true}
                        swipe={false}
                        itemType={ListItem}
                        data={this.state.options}
                        onItemTap={this.onItemTap}
                    />
                </mobiscroll.Popup>
            </div>
        );
    }    
}

<div id="content"></div>
.md-content-scroll .mbsc-fr-c {
    height: 400px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

Popup - Signup and login

Change demo
Signup and login
React Popup demo with sign up and login forms. Use it with center, anchored bubble or top/bottom display. For React.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

class PopupDemo extends React.Component {
    showRegister = () => {
        this.refs.register.instance.show();
    }
    
    showLogin = () => {
        this.refs.login.instance.show();
    }
    
    hideLogin = () => {
        this.refs.login.instance.hide();
    }
    
    render() {
        return (
            <div>
                <mobiscroll.Form>
                    <mobiscroll.FormGroup>
                        <div className="mbsc-btn-group-block">
                            <mobiscroll.Button onClick={this.showRegister}>Show register form</mobiscroll.Button>
                            <mobiscroll.Button onClick={this.showLogin}>Show login form</mobiscroll.Button>
                        </div>
                    </mobiscroll.FormGroup>
                </mobiscroll.Form>
                <mobiscroll.Popup
                    ref="register"
                    display="center"
                    buttons={[{
                        text: 'Sign Up',
                        handler: 'set'
                    }]}
                >
                    <mobiscroll.Form>
                        <mobiscroll.FormGroup inset>
                            <label>
                                <input type="text" name="name" placeholder="Name" />
                            </label>
                            <label>
                                <input type="text" name="email" placeholder="Email" />
                            </label>
                            <label>
                                <input name="password" type="text" placeholder="Password" data-password-toggle="true" data-icon-show="eye" data-icon-hide="eye-blocked" />
                            </label>
                        </mobiscroll.FormGroup>
                    </mobiscroll.Form>
                </mobiscroll.Popup>
                <mobiscroll.Popup
                    ref="login"
                    display="center"
                    buttons={[{
                        text: 'Log In',
                        handler: 'set'
                    }]}
                >
                    <mobiscroll.Form>
                        <mobiscroll.FormGroup inset>
                            <label>
                                <input type="text" name="email" placeholder="Email" />
                            </label>
                            <label>
                                <input name="password" type="text" placeholder="Password" data-password-toggle="true" data-icon-show="eye" data-icon-hide="eye-blocked" />
                            </label>
                        </mobiscroll.FormGroup>
                        <div className="mbsc-align-center">or log in with one of your existing accounts</div>
                        <mobiscroll.FormGroup inset>
                            <mobiscroll.Button onClick={this.hideLogin} className="md-social-btn mbsc-btn-block" style={{background:'#3c5c9a', color:'#fff'}}>
                                <span className="mbsc-ic mbsc-ic-ion-social-facebook mbsc-pull-left"></span>
                                Log in with Facebook
                            </mobiscroll.Button>
                            <mobiscroll.Button onClick={this.hideLogin} className="md-social-btn mbsc-btn-block" style={{background:'#28aae1', color:'#fff'}}>
                                <span className="mbsc-ic mbsc-ic-fa-twitter mbsc-pull-left"></span>
                                Log in with Twitter
                            </mobiscroll.Button>
                            <mobiscroll.Button onClick={this.hideLogin} className="md-social-btn mbsc-btn-block" style={{background:'#d34230', color:'#fff'}}>
                                <span className="mbsc-ic mbsc-ic-fa-google mbsc-pull-left"></span>
                                Log in with Google
                            </mobiscroll.Button>
                        </mobiscroll.FormGroup>
                    </mobiscroll.Form>
                </mobiscroll.Popup>
            </div>
        );
    }    
}

<div id="content"></div>
.md-social-btn .mbsc-ic {
    float: left;
}

Popup - Sheet list & grid

Change demo
Sheet list & grid
React Popup with scrollable sheet grid view or sheet list view. Provide contextual actions and shortcuts. For React.
mobiscroll.settings = {
    lang: '',
    theme: ''
};


class ListItem extends React.Component {
    render() {
        return <li data-role={this.props.item.header ? "list-divider" : ""} data-icon={this.props.item.icon}>{this.props.item.text}</li>;
    }
}

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

        this.state = {
            actions: [{
                id: 1,
                header: true,
                text: 'Actions'
            },{
                id: 2,
                text: 'Share',
                icon: 'share'
            }, {
                id: 3,
                text: 'Upload',
                icon: 'cloud-upload'
            }, {
                id: 4,
                text: 'Copy',
                icon: 'copy3'
            }, {
                id: 5,
                text: 'Print',
                icon: 'print'
            }],
            options: [{
                id: 1,
                text: 'Facebook',
                icon: 'ion-social-facebook'
            }, {
                id: 2,
                text: 'Twitter',
                icon: 'fa-twitter'
            }, {
                id: 3,
                text: 'Google plus',
                icon: 'fa-google-plus'
            }, {
                id: 4,
                text: 'Email',
                icon: 'ion-email'
            }, {
                id: 5,
                text: 'Message',
                icon: 'bubble'
            }, {
                id: 6,
                text: 'Copy',
                icon: 'copy3'
            }]
        };
    }
    
    showList = () => {
        this.refs.list.instance.show();
    }
    
    showGrid = () => {
        this.refs.grid.instance.show();
    }
    
    onListItemTap = (event, inst) => {
        this.refs.list.instance.hide();
        mobiscroll.toast({
            message: event.target.innerText + ' clicked'
        });
    }
    
    onGridItemTap = (event, inst) => {
        this.refs.grid.instance.hide();
        mobiscroll.toast({
            message: event.target.innerText + ' clicked'
        });
    }
    
    render() {
        return (
            <div>
                <mobiscroll.Form>
                    <mobiscroll.FormGroup>
                        <div className="mbsc-btn-group-block">
                            <mobiscroll.Button onClick={this.showList}>Show sheet list</mobiscroll.Button>
                            <mobiscroll.Button onClick={this.showGrid}>Show sheet grid</mobiscroll.Button>
                        </div>
                    </mobiscroll.FormGroup>
                </mobiscroll.Form>
                
                <mobiscroll.Popup 
                    ref="list"
                    buttons={[]}
                    display="bottom"
                    cssClass="mbsc-no-padding"
                >
                    <mobiscroll.Listview
                        enhance={true}
                        swipe={false}
                        itemType={ListItem}
                        data={this.state.actions}
                        onItemTap={this.onListItemTap}
                    />
                </mobiscroll.Popup>
                
                <mobiscroll.Popup 
                    ref="grid"
                    buttons={[]}
                    display="bottom"
                    cssClass="mbsc-no-padding"
                >
                    <mobiscroll.Optionlist
                        type="menu"
                        select="single"
                        snap={true}
                        itemWidth={80}
                        display="inline"
                        cssClass="md-bottom-grid"
                        data={this.state.actions}
                        onItemTap={this.onGridItemTap}
                    >
                        {this.state.options.map(function (option, index) {
                        return (
                            <mobiscroll.OptionItem
                                key={option.id}
                                icon={option.icon}
                            >
                                {option.text}
                            </mobiscroll.OptionItem>
                        );
                    }, this)}
                    </mobiscroll.Optionlist>
                </mobiscroll.Popup>

            </div>
        );
    }    
}

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

.md-bottom-grid.mbsc-ms-c {
    border: 0;
}

Popup - Lists

Change demo
Lists
React Pop-over with anchored display featuring horizontal, vertical lists and checklist. With source code. For React.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

class ListItem extends React.Component {
    render() {
        return <li data-icon={this.props.item.icon}>{this.props.item.text}</li>;
    }
}

class CheckListItem extends React.Component {
    render() {
        return <li data-icon={this.props.item.icon}> <input type="checkbox"/>{this.props.item.text}</li>;
    }
}

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

        this.state = {
            options: [{
                id: 1,
                text: 'Wifi',
                icon: 'connection'
            }, {
                id: 2,
                text: 'Location',
                icon: 'location'
            }, {
                id: 3,
                text: 'Sound',
                icon: 'volume-medium'
            }, {
                id: 4,
                text: 'Rotation',
                icon: 'fa-rotate-left'
            }, {
                id: 5,
                text: 'Bluetooth',
                icon: 'ion-bluetooth'
            }, {
                id: 6,
                text: 'Settings',
                icon: 'cogs'
            }, {
                id: 7,
                text: 'Reading',
                icon: 'user4'
            }, {
                id: 8,
                text: 'Data',
                icon: 'download'
            }]
        };
    }
    
    showHorizontal = () => {
        this.refs.horizontal.instance.show();
    }
    
    showVertical= () => {
        this.refs.vertical.instance.show();
    }
    
    showChecklist= () => {
        this.refs.checklist.instance.show();
    }
    
    onHorizontalItemTap = (event, inst) => {
        this.refs.horizontal.instance.hide();
        mobiscroll.toast({
            message: event.target.innerText + ' clicked'
        });
    }
    
    onVerticalItemTap = (event, inst) => {
        this.refs.vertical.instance.hide();
        mobiscroll.toast({
            message: event.target.innerText + ' clicked'
        });
    }
    
    render() {
        return (
            <div>
                <mobiscroll.Form>
                    <mobiscroll.FormGroup>
                        <div className="mbsc-btn-group-block">
                            <mobiscroll.Button id="showHorizontal" onClick={this.showHorizontal}>Show horizontal list</mobiscroll.Button>
                            <mobiscroll.Button id="showVertical" onClick={this.showVertical}>Show vertical list</mobiscroll.Button>
                            <mobiscroll.Button id="showChecklist" onClick={this.showChecklist}>Show checklist</mobiscroll.Button>
                        </div>
                    </mobiscroll.FormGroup>
                </mobiscroll.Form>
                
                <mobiscroll.Popup 
                    ref="horizontal"
                    display="bubble"
                    anchor="#showHorizontal"
                    buttons={[]}
                    cssClass="mbsc-no-padding"
                >
                    <mobiscroll.Optionlist 
                        type="menu"
                        snap={true}
                        itemWidth={80}
                        display="inline"
                        cssClass="md-no-border-grid"
                        data={this.state.options}
                        onItemTap={this.onHorizontalItemTap}
                    >
                        {this.state.options.map(function (option, index) {
                        return (
                            <mobiscroll.OptionItem
                                key={option.id}
                                icon={option.icon}
                            >
                                {option.text}
                            </mobiscroll.OptionItem>
                        );
                    }, this)}
                    </mobiscroll.Optionlist>
                </mobiscroll.Popup>
                
                <mobiscroll.Popup 
                    ref="vertical"
                    display="bubble"
                    anchor="#showVertical"
                    buttons={[]}
                    cssClass="mbsc-no-padding md-vertical-list"
                >
                    <mobiscroll.Listview 
                        enhance={true}
                        swipe={false}
                        itemType={ListItem}
                        data={this.state.options}
                        onItemTap={this.onVerticalItemTap}
                    />
                </mobiscroll.Popup>
                
                <mobiscroll.Popup 
                    ref="checklist"
                    display="bubble"
                    anchor="#showChecklist"
                    buttons={[]}
                    cssClass="mbsc-no-padding md-vertical-list"
                >
                    <mobiscroll.Form>
                        <mobiscroll.Listview 
                            enhance={true}
                            swipe={false}
                            itemType={CheckListItem}
                            data={this.state.options}
                        />
                    </mobiscroll.Form>
                </mobiscroll.Popup>
            </div>
        );
    }    
}

<div id="content"></div>
.md-vertical-list.mbsc-ios .mbsc-fr-arr {
    background: #fff;
}

.md-vertical-list.mbsc-ios-dark .mbsc-fr-arr {
    background: #0f0f0f;
}

.md-no-border-grid.mbsc-ms-c {
    border: 0;
}

Popup - User popover

Change demo
User popover
React Pop-over demo with display on hover. Use it to provide more information for highlighted elements or text. For React.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

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

        this.state = {
            checked: "",
            radio: "Right now"
        };
    }
    showPopup = () => {
        this.refs.popup.instance.show();
    }
    
    hidePopup = () => {
        this.refs.popup.instance.hide();
    }
    
    render() {
        return (
            <div>
                <mobiscroll.Form>
                    <div className="mbsc-padding">
                        <mobiscroll.FormGroup>
                            <p>
                                Meet web developer <a id="link" style={{cursor:'pointer', textDecoration:'underline'}} onMouseEnter={this.showPopup}>Liza</a> who designs and builds websites. She is responsible for the appearance, of the site and technical aspects,
                                such as site speed and how much traffic the site can handle. She also creates site content that requires technical features.
                            </p>
                        </mobiscroll.FormGroup>
                    </div>
                </mobiscroll.Form>
                <mobiscroll.Popup
                    ref="popup"
                    display="bubble"
                    anchor="#link"
                    buttons={[]}
                >
                    <div className="mbsc-align-center mbsc-padding" onMouseLeave={this.hidePopup}>
                        <img src="https://img.mobiscroll.com/demos/f1.png" />
                        <h3>Liza Taylor</h3>
                        <p>liza.taylor@mobiscroll.com <br /> (202) 555-0127</p>
                    </div>
                </mobiscroll.Popup>
            </div>
        );
    }    
}

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

Popup - Advanced widgets

Change demo
Advanced widgets
React Popup widget demo with combined segmented control/tabs and time picker. Combine controls for advanced functionality. For React.
mobiscroll.settings = {
    theme: '',
    lang: ''
};

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

        this.state = {
            day: 'today',
            time: new Date(),
            selectedTime: ''
        };
    }
    
    showPopup = () => {
        this.refs.popup.instance.show();
    }
    
    onSegmentedChange = (event) => {
        this.setState({ day: event.target.value })
    }
    
    onSet = () => {
        var day = this.state.day,
            today = this.refs.time.instance.getVal(),
            tempToday = new Date(today.setSeconds(0)),
            tomorrow = new Date(tempToday.setDate(tempToday.getDate() + 1)),
            selectedTime = day == 'today' ? today : tomorrow;

        this.setState({ selectedTime: selectedTime.toLocaleString() });
    }
    
    onMarkupReady = (event, inst) => {
        event.target.classList.add('mbsc-fr-bottom');
        event.target.classList.remove('mbsc-fr-inline');
    }

    render() {
        return (
            <div>
                <mobiscroll.Form>
                    <mobiscroll.FormGroup>
                        <mobiscroll.FormGroupTitle>Select time</mobiscroll.FormGroupTitle>
                        <label> Date & Time
                            <input onClick={this.showPopup} placeholder="Please select..." value={this.state.selectedTime}/>
                        </label>
                    </mobiscroll.FormGroup>
                </mobiscroll.Form>
                
                <mobiscroll.Popup
                    ref="popup"
                    cssClass="md-advanced-popup"
                    buttons={['set', 'cancel']}
                    onSet={this.onSet}
                >
                    <mobiscroll.Form>
                        <mobiscroll.Segmented name="day" value="today" checked={this.state.day === 'today'} onChange={this.onSegmentedChange}>
                            Today
                        </mobiscroll.Segmented>
                        <mobiscroll.Segmented name="day" value="tomorrow" checked={this.state.day === 'tomorrow'} onChange={this.onSegmentedChange}>
                            Tomorrow
                        </mobiscroll.Segmented>
                        <mobiscroll.Time
                            ref="time"
                            type="hidden"
                            display="inline"
                            steps={{ minute: 15 }}
                            value={this.state.time}
                            onMarkupReady={this.onMarkupReady}
                        />
                    </mobiscroll.Form>
                </mobiscroll.Popup>
            </div>
        );
    }    
}

<div id="content"></div>
/* Needed for the time picker, because we removed the mbsc-fr-inline class below */

.md-advanced-popup .mbsc-fr,
.md-advanced-popup .mbsc-fr .mbsc-fr-popup {
    position: static;
    border: 0;
    pointer-events: auto;
    box-shadow: none;
}

/* Theme overrides */

.md-advanced-popup.mbsc-ios .mbsc-segmented,
.md-advanced-popup.mbsc-ios .mbsc-segmented-content {
    background: #d1d5db;
}

.md-advanced-popup.mbsc-ios-dark .mbsc-segmented,
.md-advanced-popup.mbsc-ios-dark .mbsc-segmented-content {
    background: #080808;
}

.md-advanced-popup.mbsc-windows .mbsc-segmented,
.md-advanced-popup.mbsc-windows .mbsc-segmented-content {
    background: #f2f2f2;
}

.md-advanced-popup.mbsc-windows-dark .mbsc-segmented,
.md-advanced-popup.mbsc-windows-dark .mbsc-segmented-content {
    background: #1a1a1a;
}

Popup - Configure buttons

Change demo
Configure buttons
React Popup demo with different button configurations. Use it with or without buttons. Add custom actions. For React.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

class PopupDemo extends React.Component {
    showNoButtons = () => {
        this.refs.noButtons.instance.show();
    }
    
    showDefault= () => {
        this.refs.defaultButton.instance.show();
    }
    
    showCustom = () => {
        this.refs.customButtons.instance.show();
    }
    
    render() {
        return (
            <div>
                <mobiscroll.Form>
                    <mobiscroll.FormGroup>
                        <div className="mbsc-btn-group-block">
                            <mobiscroll.Button id="showNoButtons" onClick={this.showNoButtons}>No buttons</mobiscroll.Button>
                            <mobiscroll.Button id="showDefault" onClick={this.showDefault}>Default</mobiscroll.Button>
                            <mobiscroll.Button id="showCustom" onClick={this.showCustom}>Custom buttons</mobiscroll.Button>
                        </div>
                    </mobiscroll.FormGroup>
                </mobiscroll.Form>
                
                <mobiscroll.Popup 
                    ref="noButtons"
                    display="center"
                    buttons={[]}
                >
                    <div className="mbsc-align-center mbsc-padding">
                        <h3 className="md-text-center">Hi!</h3>
                        <p className="md-text-center">This is a popup with no buttons</p>
                    </div>
                </mobiscroll.Popup>
                
                 <mobiscroll.Popup 
                    ref="defaultButton"
                    display="center"
                >
                    <div className="mbsc-align-center mbsc-padding">
                        <h3 className="md-text-center">Hi there!</h3>
                        <p className="md-text-center">This is a popup with default button</p>
                    </div>
                </mobiscroll.Popup>
                
                 <mobiscroll.Popup 
                    ref="customButtons"
                    display="center"
                    buttons={[
                        'set',
                        {
                            text: 'Custom',
                            icon: 'checkmark',
                            handler: function (event, inst) {
                                inst.hide();
                                mobiscroll.toast({
                                    message: ' Custom button clicked'
                                });
                            }
                        },
                        'cancel'
                    ]}
                >
                    <div className="mbsc-align-center mbsc-padding">
                        <h3 className="md-text-center">Hi again!</h3>
                        <p className="md-text-center">This is a popup with three custom buttons</p>
                    </div>
                </mobiscroll.Popup>
            </div>
        );
    }    
}


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

Popup - Display modes

Change demo
Display modes
React Popup demo with top/bottom center and anchored bubble display modes. For React.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

class PopupDemo extends React.Component {
    showBottom = () => {
        this.refs.bottomDemo.instance.show();
    }
    
    showTop = () => {
        this.refs.topDemo.instance.show();
    }
    
    showCenter = () => {
        this.refs.centerDemo.instance.show();
    }
    
    showBubble = () => {
        this.refs.bubbleDemo.instance.show();
    }
    
    render() {
        return (
            <div>
                <mobiscroll.Form>
                    <mobiscroll.FormGroup>
                        <mobiscroll.FormGroupTitle>Try different display modes</mobiscroll.FormGroupTitle>
                    </mobiscroll.FormGroup>
                    <mobiscroll.FormGroup className="mbsc-btn-group-block">
                        <mobiscroll.Button onClick={this.showBottom}>Try bottom display mode</mobiscroll.Button>
                        <mobiscroll.Button onClick={this.showTop}>Try top display mode</mobiscroll.Button>
                        <mobiscroll.Button onClick={this.showCenter}>Try center display mode</mobiscroll.Button>
                        <mobiscroll.Button id="show-bubble" onClick={this.showBubble}>Try bubble display mode</mobiscroll.Button>
                    </mobiscroll.FormGroup>
                </mobiscroll.Form>
                <mobiscroll.Popup
                    ref="bottomDemo"
                    display="bottom"
                    buttons={[{
                            text: 'Ok',
                            handler: 'set'
                        },
                        'cancel'
                    ]}
                >
                    <div className="mbsc-align-center mbsc-padding">
                        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg" />
                        <p>Welcome on our website! <br /> Have fun navigating through the demos.</p>
                    </div>
                </mobiscroll.Popup>
                <mobiscroll.Popup
                    ref="topDemo"
                    display="top"
                    buttons={[{
                            text: 'Ok',
                            handler: 'set'
                        },
                        'cancel'
                    ]}
                >
                     <div className="mbsc-align-center mbsc-padding">
                        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg" />
                        <p>Welcome on our website! <br /> Have fun navigating through the demos.</p>
                    </div>
                </mobiscroll.Popup>
                <mobiscroll.Popup
                    ref="centerDemo"
                    display="center"
                    buttons={[{
                            text: 'Ok',
                            handler: 'set'
                        },
                        'cancel'
                    ]}
                >
                     <div className="mbsc-align-center mbsc-padding">
                        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg" />
                        <p>Welcome on our website! <br /> Have fun navigating through the demos.</p>
                    </div>
                </mobiscroll.Popup>
                <mobiscroll.Popup
                    ref="bubbleDemo"
                    display="bubble"
                    anchor="#show-bubble"
                    buttons={[{
                            text: 'Ok',
                            handler: 'set'
                        },
                        'cancel'
                    ]}
                >
                     <div className="mbsc-align-center mbsc-padding">
                        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg" />
                        <h4>Welcome on our website!</h4>
                        <p>Have fun navigating through the demos.</p>
                    </div>
                </mobiscroll.Popup>
            </div>
        );
    }    
}

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

Popup - Theming capabilities

Change demo
Theming capabilities
React Popup widget with iOS, Material, Windows look & feel. Customize colors and styling with theme builder. For React.
mobiscroll.settings = {
    theme: '',
    lang: ''
};

class PopupDemo extends React.Component {
    showIos = () => {
        this.refs.iosDemo.instance.show();
    }
    showIosDark = () => {
        this.refs.iosDarkDemo.instance.show();
    }
    showMaterial = () => {
        this.refs.materialDemo.instance.show();
    }
    showMaterialDark = () => {
        this.refs.materialDarkDemo.instance.show();
    }
    showWindows = () => {
        this.refs.windowsDemo.instance.show();
    }
    showWindowsDark = () => {
        this.refs.windowsDarkDemo.instance.show();
    }
    showMobiscroll = () => {
        this.refs.mobiscrollDemo.instance.show();
    }
    showMobiscrollDark = () => {
        this.refs.mobiscrollDarkDemo.instance.show();
    }
    render() {
        return (
            <div>
                <mobiscroll.Form>
                    <div className="mbsc-grid-fixed mbsc-grid-lg">
                        <div className="mbsc-row">
                            <div className="mbsc-col">
                                <mobiscroll.FormGroup inset>
                                    <mobiscroll.FormGroupTitle>iOS Theme</mobiscroll.FormGroupTitle>
                                    <div className="mbsc-btn-group-block">
                                        <mobiscroll.Button onClick={this.showIos}>iOS Light Theme</mobiscroll.Button>
                                        <mobiscroll.Button onClick={this.showIosDark}>iOS Dark Theme</mobiscroll.Button>
                                    </div>
                                </mobiscroll.FormGroup>
                            </div>
                            <div className="mbsc-col">
                                <mobiscroll.FormGroup inset>
                                    <mobiscroll.FormGroupTitle>Material Theme</mobiscroll.FormGroupTitle>
                                    <div className="mbsc-btn-group-block">
                                        <mobiscroll.Button onClick={this.showMaterial}>Material Light Theme</mobiscroll.Button>
                                        <mobiscroll.Button onClick={this.showMaterialDark}>Material Dark Theme</mobiscroll.Button>
                                    </div>
                                </mobiscroll.FormGroup>
                            </div>
                        </div>
                        <div className="mbsc-row">
                            <div className="mbsc-col">
                                <mobiscroll.FormGroup inset>
                                    <mobiscroll.FormGroupTitle>Windows Theme</mobiscroll.FormGroupTitle>
                                    <div className="mbsc-btn-group-block">
                                        <mobiscroll.Button onClick={this.showWindows}>Windows Light Theme</mobiscroll.Button>
                                        <mobiscroll.Button onClick={this.showWindowsDark}>Windows Dark Theme</mobiscroll.Button>
                                    </div>
                                </mobiscroll.FormGroup>
                            </div>
                            <div className="mbsc-col">
                                <mobiscroll.FormGroup inset>
                                    <mobiscroll.FormGroupTitle>Mobiscroll Theme</mobiscroll.FormGroupTitle>
                                    <div className="mbsc-btn-group-block">
                                        <mobiscroll.Button onClick={this.showMobiscroll}>Mobiscroll Light Theme</mobiscroll.Button>
                                        <mobiscroll.Button onClick={this.showMobiscrollDark}>Mobiscroll Dark Theme</mobiscroll.Button>
                                    </div>
                                </mobiscroll.FormGroup>
                            </div>
                        </div>
                    </div>
                </mobiscroll.Form>
                
                <mobiscroll.Popup ref="iosDemo" theme="ios" display="center">
                    <div className="mbsc-align-center mbsc-padding">
                        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg" />
                        <p>Welcome on our website! <br /> Have fun navigating through the demos.</p>
                    </div>
                </mobiscroll.Popup>
                <mobiscroll.Popup ref="iosDarkDemo" theme="ios-dark" display="center">
                    <div className="mbsc-align-center mbsc-padding">
                        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg" />
                        <p>Welcome on our website! <br /> Have fun navigating through the demos.</p>
                    </div>
                </mobiscroll.Popup>
                <mobiscroll.Popup ref="materialDemo" theme="material" display="center">
                    <div className="mbsc-align-center mbsc-padding">
                        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg" />
                        <p>Welcome on our website! <br /> Have fun navigating through the demos.</p>
                    </div>
                </mobiscroll.Popup>
                <mobiscroll.Popup ref="materialDarkDemo" theme="material-dark" display="center">
                    <div className="mbsc-align-center mbsc-padding">
                        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg" />
                        <p>Welcome on our website! <br /> Have fun navigating through the demos.</p>
                    </div>
                </mobiscroll.Popup>
                <mobiscroll.Popup ref="windowsDemo" theme="windows" display="center">
                    <div className="mbsc-align-center mbsc-padding">
                        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg" />
                        <p>Welcome on our website! <br /> Have fun navigating through the demos.</p>
                    </div>
                </mobiscroll.Popup>
                <mobiscroll.Popup ref="windowsDarkDemo" theme="windows-dark" display="center">
                    <div className="mbsc-align-center mbsc-padding">
                        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg" />
                        <p>Welcome on our website! <br /> Have fun navigating through the demos.</p>
                    </div>
                </mobiscroll.Popup>
                <mobiscroll.Popup ref="mobiscrollDemo" theme="mobiscroll" display="center">
                    <div className="mbsc-align-center mbsc-padding">
                        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg" />
                        <p>Welcome on our website! <br /> Have fun navigating through the demos.</p>
                    </div>
                </mobiscroll.Popup>
                <mobiscroll.Popup ref="mobiscrollDarkDemo" theme="mobiscroll-dark" display="center">
                    <div className="mbsc-align-center mbsc-padding">
                        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg" />
                        <p>Welcome on our website! <br /> Have fun navigating through the demos.</p>
                    </div>
                </mobiscroll.Popup>
               
            </div>
        );
    }    
}

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

Popup - Event handlers

Change demo
Event handlers
React Popup demo with event hooks for custom integration and functionality. Use event handlers to customize flows. For React.
Clear event log
EVENTS FIRED: 
mobiscroll.settings = {
    lang: '',
    theme: ''
};

class PopupDemo extends React.Component {
    show = () => {
        this.refs.popup.instance.show();
    }
    onInit = (event, inst) => {
        // Your custom event handler goes here
    }
    onMarkupReady = (event, inst) => {
        // Your custom event handler goes here
    }
    onBeforeShow = (event, inst) => {
        // Your custom event handler goes here
    }
    onPosition = (event, inst) => {
        // Your custom event handler goes here
    }
    onShow = (event, inst) => {
        // Your custom event handler goes here
    }
    onDestroy = (event, inst) => {
        // Your custom event handler goes here
    }
    onClose = (event, inst) => {
        // Your custom event handler goes here
    }
    onCancel = (event, inst) => {
        // Your custom event handler goes here
    }
    onBeforeClose = (event, inst) => {
        // Your custom event handler goes here
    }
    onSet = (event, inst) => {
        // Your custom event handler goes here
    }
    
    render() {
        return (
            <div>
                <mobiscroll.Form>
                    <mobiscroll.FormGroup>
                        <div className="mbsc-btn-group-block">
                            <mobiscroll.Button onClick={this.show}>How are you feeling?</mobiscroll.Button>
                        </div>
                    </mobiscroll.FormGroup>
                </mobiscroll.Form>
                <mobiscroll.Popup
                    ref="popup"
                    theme=""
                    lang=""
                    display="center"
                    buttons={[{
                            text: 'Ok',
                            handler: 'set'
                        },
                        'cancel'
                    ]}
                    onInit={this.onInit}
                    onMarkupReady={this.onMarkupReady}
                    onBeforeShow={this.onBeforeShow}
                    onPosition={this.onPosition}
                    onShow={this.onShow}
                    onDestroy={this.onDestroy}
                    onClose={this.onClose}
                    onCancel={this.onCancel}
                    onBeforeClose={this.onBeforeClose}
                    onSet={this.onSet}
                >
                    <div className="mbsc-align-center mbsc-padding">
                        <img src="https://img.mobiscroll.com/demos/logo-noshadow.jpg" />
                        <h4>Welcome on our website!</h4>
                        <p>Have fun navigating through the demos.</p>
                    </div>
                </mobiscroll.Popup>
            </div>
        );
    }    
}

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

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 36 components, including with the Framework license.



Mobiscroll for React $595


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/7 or Ionic 2/3/4. Use it when you are building your app or website with React.


Buy framework license
See other licensing options

Framework license


Get all 36 components, including with the Framework license.



Mobiscroll for React $595


  • 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/7 and Ionic 2/3/4
  • 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 36 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/7 and Ionic 2/3/4
  • 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/7 or Ionic 2/3/4.

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
Sign in or start your free trial

What framework are you using?

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

Customize & try this demo locally
Sign in or start your free trial

We have to set you up with a trial for this to run 👍

Email address

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

What framework are you using?

Javascript
jQuery
AngularJS
Angular
Ionic
React
Other
Select a framework
Install demo in your app
Follow this quick, two minute install guide
Close window

Step 1.Install the Mobiscroll CLI from npm

Copy command
$ npm install -g @mobiscroll/cli

The CLI makes configuring your apps super simple 👍

Step 2.Run the following command in the root folder of your Ionic project

Copy command
$ mobiscroll config ionic
$ mobiscroll config ionic --lite

You will be prompted to log in with your mobiscroll account. Set your password here

Create an Ionic 3 & Mobiscroll starter with the CLI:

$ mobiscroll start ionic myStarter

Run this command for Ionic 4 & Mobiscroll starter:

$ mobiscroll start ionic-angular myStarter

Step 3.Copy the code into your app. HTML goes into the markup, TS into Typescript.

Copy TS
Copy HTML
Copy CSS

Run ionic serve in the root folder of your app 🎉

Copy command
$ ionic serve
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
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.

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

Extract the zip file and open the demo in your favorite browser. To install Mobiscroll in your project follow instructions from this page.


Let us know if we can help and enjoy! 👍

Thanks for downloading
Customize demos locally

Please extract the zip file and run the project like any Angular CLI app. Make sure to have the Angular CLI installed.

For installation and usage, extract the zip file and open a terminal window and follow these steps.

Step 1. Run in root folder
$ npm install
Step 2. Start the app
$ ng serve --open

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

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 demos are using Babel's in-browser ES6 and JSX transformer. Extract the zip file and open the demo in your browser. To install Mobiscroll in your project follow instructions from this page.


Let us know if we can help and enjoy! 👍

Demos
Alerts & notifications
Alert Notifications Note
Components
Alerts & notifications 3
Buttons 4
Calendar 27
Cards 14
Color 10
Date & Time 20
Event Calendar 25
Forms 9
Grid layout 7
Image 7
Inputs & fields 6
Listview 17
Measurement 10
Navigation 8
Number 8
Numpad 13
Option List 4
Popup 10
Range 19
Scroller 7
Scrollview 5
Select 16
Slider & progress 4
Styling 6
Timer 5
Timespan 6
Toggle & Radio 4
Treelist 7
Theme Select
Mobiscroll
Mobiscroll Dark
Material
Material Dark
iOS
iOS Dark
Bootstrap
Windows
Windows Dark
Display Mode
Language Locale
See other demos and change options
Theme
Display
Locale
See other demos