Color for React

Learn more

Color picker component with single and multiple color selection. Refine luminosity with a slider when necessary.

Use it for filtering and anywhere where users need to pick colors.

Shipping with useful features for a refined UX, including:

  • Usage on mobile and desktop
  • Single and multiple select
  • Refine luminosity
  • List any number of color presets
  • Multiple theme support
  • Modal, popup and inline display support
  • RTL Support
  • Full localization and microcopy


Color demos available for other frameworks.

Viewing demos & code for

light
dark

Change the theme setting here

Color - Single/multiple select

Change demo
Single/multiple select
React Single and multiple color select from a predefined set of colors. Custom set can be used. With source code. For React.
mobiscroll.settings = {
    theme: '',
    lang: ''
};

class App extends React.Component {
    render() {
        return (
            <mobiscroll.Form>
                <mobiscroll.FormGroup>
                    <mobiscroll.FormGroupTitle>Single select & multiple select</mobiscroll.FormGroupTitle>
                    <label>
                        One color
                        <mobiscroll.Color
                            ref="color" 
                            select="single"
                            placeholder="Please Select..."
                        />
                    </label>
                    <label>
                        Multiple
                        <mobiscroll.Color
                            ref="color"
                            select="multi"
                            headerText="Pick your favorite colors"
                            placeholder="Please Select..."
                        />
                    </label>
                </mobiscroll.FormGroup>
            </mobiscroll.Form>
        );
    }   
}

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

Color - Swipe direction

Change demo
Swipe direction
React Color picker demo with a predefined set of colors. Supporting both horizontal and vertical scrolling. With source code. For React.
mobiscroll.settings = {
    theme: '',
    lang: ''
};

class App extends React.Component {
    render() {
        return (
            <mobiscroll.Form>
                <mobiscroll.FormGroup>
                    <mobiscroll.FormGroupTitle>Swipe direction</mobiscroll.FormGroupTitle>
                    <label>
                        Vertical
                        <mobiscroll.Color
                            navigation="vertical"
                            rows={3}
                            placeholder="Please Select..."
                        />
                    </label>
                    <label>
                        Horizontal
                        <mobiscroll.Color
                            navigation="horizontal"
                            placeholder="Please Select..."
                        />
                    </label>
                </mobiscroll.FormGroup>
            </mobiscroll.Form>
        );
    }   
}

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

Color - Refine

Change demo
Refine
React Color picker demo for selecting and setting the luminosity for a single color with a slider. For desktop & mobile. For React.
class App extends React.Component {
    render() {
        return (
            <div>
                <mobiscroll.Color 
                    ref="color"
                    theme=""
                    lang=""
                    mode="refine"
                    placeholder="Please Select..."
                />
            </div>
        );
    }    
}

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

Color - Custom colors

Change demo
Custom colors
React Color picker demo with selection from a custom set of colors. Use it on both mobile & desktop. For React.
class App extends React.Component {
    render() {
        return (
            <div>
                <mobiscroll.Color
                    ref="color"
                    theme=""
                    lang=""
                    data={["#fff9c4","#ffe57f","#fce68e","#ffcc80","#ffcdd2","#ffccbc","#ff8a80","#ff9e80","#ef9a9a","#eb8686","#f48fb1","#ff99bc","#e1bee7","#c5cae9","#b2ebf2","#bbdefb","#dcedc8","#e6ee9c","#dbffb0","#d5c0a6","#d9ad7b","#d7ccc8","#d4d7da"]}
                    placeholder="Please Select..."
                />
            </div>
        );
    }    
}

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

Color - Multiple select count

Change demo
Multiple select count
React Multiple color select with a maximum of six available slots. Custom set can be used. Use it on desktop & mobile. For React.
class App extends React.Component {
    render() {
        return (
            <div>
                <mobiscroll.Color
                    ref="color"
                    theme=""
                    lang=""
                    placeholder="Please Select..."
                    select={6}
                />
            </div>
        );
    }    
}

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

Color - Color format

Change demo
Color format
React Color picker demo with support for value format in HEX, HSL and RGB. Return and work with the color value. For React.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

class App extends React.Component {
    render() {
        return (
            <mobiscroll.Form>
                <mobiscroll.FormGroup>
                    <mobiscroll.FormGroupTitle>Color formats</mobiscroll.FormGroupTitle>
                    <label>
                        Hex
                        <mobiscroll.Color
                            format="rgb"
                            enhance={false}
                            placeholder="Please Select..."
                        />
                    </label>
                    <label>
                        Rgb
                        <mobiscroll.Color
                            format="rgb"
                            enhance={false}
                            placeholder="Please Select..."
                        />
                    </label>
                    <label>
                        Hsl
                        <mobiscroll.Color
                            format="hsl"
                            enhance={false}
                            placeholder="Please Select..."
                        />
                    </label>
                </mobiscroll.FormGroup>
            </mobiscroll.Form>
        );
    }   
}

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

Color - Event handlers

Change demo
Event handlers
React Color picker for mobile and desktop demo with event hooks for custom integration and functionality. For React.
Clear event log
EVENTS FIRED: 
class App extends React.Component {
    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
    }
    
    onSet = (event, inst) => {
        // Your custom event handler goes here
    }
    
    onItemTap = (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
    }
    
    onClear = (event, inst) => {
        // Your custom event handler goes here
    }
    
    onPreviewItemTap = (event, inst) => {
        // Your custom event handler goes here
    }
    
    render() {
        
        return (
            <div>
                <mobiscroll.Color
                    ref="color"
                    theme=""
                    lang=""
                    onInit={this.onInit}
                    onMarkupReady={this.onMarkupReady}
                    onBeforeShow={this.onBeforeShow}
                    onPosition={this.onPosition}
                    onShow={this.onShow}
                    onSet={this.onSet}
                    onItemTap={this.onItemTap}
                    onDestroy={this.onDestroy}
                    onClose={this.onClose}
                    onCancel={this.onCancel}
                    onBeforeClose={this.onBeforeClose}
                    onClear={this.onClear}
                    onPreviewItemTap={this.onPreviewItemTap}
                    placeholder="Please Select..."
                />
            </div>
        );
    }    
}

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

Color - Display modes

Change demo
Display modes
React Color picker for mobile and desktop with top, bottom, popup, center, modal, bubble and inline embeddable display. For React.
mobiscroll.settings = {
    theme: '',
    lang: ''
};

class App extends React.Component {
    render() {
        return (
            <mobiscroll.Form >
                <mobiscroll.FormGroup>
					<mobiscroll.FormGroupTitle>Try different display modes</mobiscroll.FormGroupTitle>
                    <label>
                        Bottom
                        <mobiscroll.Color
                            display="bottom"
                            placeholder="Please Select..."
                        />
                    </label>
                    <label>
                        Top
                        <mobiscroll.Color
                            display="top"
                            placeholder="Please Select..."
                        />
                    </label>
                    <label>
                        Center
                        <mobiscroll.Color
                            display="center"
                            placeholder="Please Select..."
                        />
                    </label>
                    <label>
                        Bubble
                        <mobiscroll.Color
                            display="bubble"
                            placeholder="Please Select..."
                        />
                    </label>
                </mobiscroll.FormGroup>
                <mobiscroll.FormGroup className="mbsc-padding">
                    <p className="mbsc-thin">With inline display you can embed the color component in almost any markup or form.</p>
                </mobiscroll.FormGroup>
                <mobiscroll.FormGroup className="md-hidden">
                    <mobiscroll.FormGroupTitle>Embedded color picker</mobiscroll.FormGroupTitle>
                        <mobiscroll.Color
                            type="hidden"
                            display="inline"
                            layout="liquid"
                            placeholder="Please Select..."
                        />
                </mobiscroll.FormGroup>
            </mobiscroll.Form>
        );
    }   
}

<div id="content"></div>
.md-hidden .mbsc-color-input {
    display: none;
}

Color - Desktop

Change demo
Desktop
React desktop color picker for the web. Interact on the UI with cursor & pointer for usage on not just touchscreens. For React.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

class App extends React.Component {
    render() {
        return (
            <mobiscroll.Form>
                <div className="mbsc-grid">
                    <div className="mbsc-row mbsc-justify-content-center">
                        <div className="mbsc-col-sm-9 mbsc-col-md-7 mbsc-col-xl-5">
                            <mobiscroll.FormGroup inset>
                                <mobiscroll.FormGroupTitle>Pop-up positioning</mobiscroll.FormGroupTitle>
                                <label>
                                    Top
                                    <mobiscroll.Color
                                        touchUi={false}
                                        display="top"
                                        placeholder="Please select..."
                                    />
                                </label>
                                <label>
                                    Bottom
                                    <mobiscroll.Color
                                        touchUi={false}
                                        display="bottom"
                                        placeholder="Please select..."
                                    />
                                </label>
                                <label>
                                    Anchored
                                    <mobiscroll.Color
                                        touchUi={false}
                                        placeholder="Please select..."
                                    />
                                </label>
                                <label>
                                    Center
                                    <mobiscroll.Color
                                        touchUi={false}
                                        display="center"
                                        placeholder="Please select..."
                                    />
                                </label>
                            </mobiscroll.FormGroup>
                        </div>
                    </div>
                    <div className="mbsc-row mbsc-justify-content-center">
                        <div className="mbsc-col-sm-9 mbsc-col-md-7 mbsc-col-xl-5">
                            <mobiscroll.FormGroup inset>
                                <mobiscroll.FormGroupTitle>Basic usage</mobiscroll.FormGroupTitle>
                                <label>
                                    Multiple
                                    <mobiscroll.Color
                                        select="multi"
                                        headerText="Pick your favorite colors"
                                        display="top"
                                        touchUi={false}
                                        placeholder="Select favorite colors"
                                    />
                                </label>
                                <label>
                                    Fixed
                                    <mobiscroll.Color
                                        select={6}
                                        display="top"
                                        touchUi={false}
                                        placeholder="Select up to six colors"
                                    />
                                </label>
                                <label>
                                    Luminosity
                                    <mobiscroll.Color
                                        mode="refine"
                                        display="top"
                                        touchUi={false}
                                        placeholder="Please select..."
                                    />
                                </label>
                            </mobiscroll.FormGroup>
                        </div>
                    </div>
                    <div className="mbsc-row mbsc-justify-content-center">
                        <div className="mbsc-col-sm-9 mbsc-col-md-7 mbsc-col-xl-5">
                            <mobiscroll.FormGroup inset>
                                <mobiscroll.FormGroupTitle>With buttons</mobiscroll.FormGroupTitle>
                                <label>
                                    Set button
                                    <mobiscroll.Color
                                        display="center"
                                        touchUi={false}
                                        buttons={['set']}
                                        placeholder="Please select..."
                                    />
                                </label>
                                <label>
                                    Set/Cancel
                                    <mobiscroll.Color
                                        display="center"
                                        touchUi={false}
                                        buttons={['set', 'cancel']}
                                        placeholder="Please select..."
                                    />
                                </label>
                            </mobiscroll.FormGroup>
                        </div>
                    </div>
                </div>
            </mobiscroll.Form>
        );
    }    
}

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

Color - Theming capabilities

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

class App extends React.Component {
    render () {
        return (
            <mobiscroll.Form>
                <div className="mbsc-grid mbsc-grid-fixed">
                    <div className="mbsc-row">
                        <div className="mbsc-col-sm-12 mbsc-col-md-6">
                            <mobiscroll.FormGroup inset>
                                <mobiscroll.FormGroupTitle>iOS Theme</mobiscroll.FormGroupTitle>
                                <label>
            					    Light
                                    <mobiscroll.Color
                                        theme="ios"
                                        display="bubble"
                                        touchUi={false}
                                        placeholder="Please Select..."
                                    />
                                </label>
                                <label>
            					    Dark
                                    <mobiscroll.Color
                                        theme="ios-dark"
                                        display="bubble"
                                        touchUi={false}
                                        placeholder="Please Select..."
                                    />
                                </label>
                                <label>
            					    Custom
                                    <mobiscroll.Color
                                        theme="ios-gray"
                                        display="bubble"
                                        touchUi={false}
                                        placeholder="Please Select..."
                                    />
                                </label>
                            </mobiscroll.FormGroup>
                        </div>
                        <div className="mbsc-col-sm-12 mbsc-col-md-6">
                            <mobiscroll.FormGroup inset>
                                <mobiscroll.FormGroupTitle>Material Theme</mobiscroll.FormGroupTitle>
                                <label>
            					    Light
                                    <mobiscroll.Color
                                        theme="material"
                                        display="bubble"
                                        touchUi={false}
                                        placeholder="Please Select..."
                                    />
                                </label>
                                <label>
            					    Dark
                                    <mobiscroll.Color
                                        theme="material-dark"
                                        display="bubble"
                                        touchUi={false}
                                        placeholder="Please Select..."
                                    />
                                </label>
                                <label>
            					    Custom
                                    <mobiscroll.Color
                                        theme="material-indigo"
                                        display="bubble"
                                        touchUi={false}
                                        placeholder="Please Select..."
                                    />
                                </label>
                            </mobiscroll.FormGroup>
                        </div>
                    </div>
                    <div className="mbsc-row">
                        <div className="mbsc-col-sm-12 mbsc-col-md-6">
                            <mobiscroll.FormGroup inset>
                                <mobiscroll.FormGroupTitle>Windows Theme</mobiscroll.FormGroupTitle>
                                <label>
            					    Light
                                    <mobiscroll.Color
                                        theme="windows"
                                        display="bubble"
                                        touchUi={false}
                                        placeholder="Please Select..."
                                    />
                                </label>
                                <label>
            					    Dark
                                    <mobiscroll.Color
                                        theme="windows-dark"
                                        display="bubble"
                                        touchUi={false}
                                        placeholder="Please Select..."
                                    />
                                </label>
                                <label>
            					    Custom
                                    <mobiscroll.Color
                                        theme="windows-yellow"
                                        display="bubble"
                                        touchUi={false}
                                        placeholder="Please Select..."
                                    />
                                </label>
                            </mobiscroll.FormGroup>
                        </div>
                        <div className="mbsc-col-sm-12 mbsc-col-md-6">
                            <mobiscroll.FormGroup inset>
                                <mobiscroll.FormGroupTitle>Mobiscroll Theme</mobiscroll.FormGroupTitle>
                                <label>
            					    Light
                                    <mobiscroll.Color
                                        theme="mobiscroll"
                                        display="bubble"
                                        touchUi={false}
                                        placeholder="Please Select..."
                                    />
                                </label>
                                <label>
            					    Dark
                                    <mobiscroll.Color
                                        theme="mobiscroll-dark"
                                        display="bubble"
                                        touchUi={false}
                                        placeholder="Please Select..."
                                    />
                                </label>
                                <label>
            					    Custom
                                    <mobiscroll.Color
                                        theme="mobiscroll-lime"
                                        display="bubble"
                                        touchUi={false}
                                        placeholder="Please Select..."
                                    />
                                </label>
                            </mobiscroll.FormGroup>
                        </div>
                    </div>
                </div>
            </mobiscroll.Form>
        );
    }    
}

<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.

Copy TS
Copy HTML
Copy CSS
Copy Module

Step 4.Run ionic serve in the root folder of your app 🎉

Copy command
$ ionic serve

And voilà, everything should be running smoothly.

Customize & try demos locally
How would you like to do it?
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 Angular project

Copy command
$ mobiscroll config angular
$ mobiscroll config angular --lite

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

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

Copy TS
Copy HTML
Copy CSS
Copy Module

Step 4.Run ng serve in the root folder of your app 🎉

Copy command
$ ng serve

And voilà, everything should be running smoothly.

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
Collapsible 3
Color 10
Date & Time 20
Event Calendar 25
Forms 6
Grid layout 7
Image 7
Inputs & fields 6
Listview 18
Measurement 10
Navigation 8
Number 8
Numpad 13
Option List 4
Popup 10
Range 19
Scroller 7
Scrollview 5
Select 18
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