🤩
Windframe Import update is finally here!

Multiselect

Bootstrap 5 Multiselect

Bootstrap 5 Multiselect is one of Contrast components that allows you to control the numerous options available in one record. it is mostly used in forms, menus and surveys.

They let you to navigate through alternatives by using the and arrow keys, and to choose the required option by using the key.

Basic Multiselect

To use Contrast Bootstrap 5 Multiselect in your project, use the multiselect class.

The Multiselect method in the CDB targets the element with the multiselect class.

The options array represents the many values you are allowing the user to choose from, while the multiple prop accepts a boolean value that, when set to true, allows you to select more than one multiselect option. The icon prop specifies which icon should appear in your multiselect, and the placeholder specifies what data should be entered into the input field.

Bootstrap Multiselect Default

html
html
<span class="multiselect"></span>
Script
js
<script src="../build/cdbbootstrap.js"></script>
<script>
var multiSelect1 = new CDB.MultiSelect('.multiselect', {
options: [
{
label: 'New York',
value: 'NY',
},
{
label: 'Washington',
value: 'WA',
},
{
label: 'California',
value: 'CA',
},
{
label: 'New Jersey',
value: 'NJ',
},
{
label: 'North Carolina',
value: 'NC',
},
],
multiple: true,
icon: 'fa fa-times',
placeholder: 'Select a State',
});
</script>

Trying to build out all user interfaces and components for your website or web app from scratch can become a very tedious task. A huge reason why we created Contrast Bootstrap to help reduce the amount of time we spend doing that, so we can focus on building some other aspects of the project. Contrast Bootstrap PRO consists of a UI Kit featuring over 10000+ component variants. Together with a template of 5 admin dashboards and 23+ additional multipurpose pages template for building almost any type of website or web app. You can view a demo and learn more about Contrast by clicking here.Download the free react template

ad-banner

Contrast Bootstrap PRO was built using the most popular CSS framework Bootstrap to help build your next landing, admin SAAS, prelaunch etc project with a clean, prebuilt and well documented template and UI components.Learn more about Contrast