Color picker

Bootstrap 5 Color picker plugin

Color Picker plugin allows you to select different colors. You can successfully use it in various product wizards, clothing sales, or other situations where you need to be able to choose a color.

Note: Read the API tab to find all available options and advanced customization


Native color picker

If you need the simplest form - use a native color picker.


Advanced color picker - basic example

The Advanced Color Picker can be placed anywhere on the page. You can initialize it using <MDBColorPicker />.


Disable state example

To add a Color picker as read-only pass disabled as prop.


Swatches

You can add ready-made samples for the user. Use the swatchesColor option and pass an array of colors as a parameter. If you want to add colors in several columns, add them in separate tables.


Swatches Height

If the defined samples take up a lot of space, you can set their maximum height using the swatchesHeight option.


Default value

To set the default value use the defaultColor option.


Dropdown

You can use color picker as dropdown, just pass dropdown as prop.


Disable section

If you want to use only some picker elements you can disable unnecessary elements. The following example shows the use of the colorPalette option. Other options can be found in the API tab.