Introduction
An overview of Bootstrap-Nice-Select, how to download and use it, basic templates, and more.
Quickstart
Looking to quickly add Bootstrap-Nice-Select to your Bootstrap 5 project? Use CDN, provided for free by the folks at UNPKG, using a package manager or need to download the source files? Head to the downloads page.
CSS
Copy-paste the stylesheet <link>
into your <head>
before all other stylesheets to load the CSS. The CSS needs to be loaded after Bootstrap.css, because the components will use
Bootstrap variables.
JS
Place the following script
/s near the end of your pages, right before the closing </body>
tag, to enable them. If using Bootstrap 4, jQuery must come first, then Bootstrap.js, and then our JavaScript files.
HTML5 doctype
Bootstrap requires the use of the HTML5 doctype. Without it, you’ll see some funky and incomplete styling.
Template
Be sure to have your pages set up with the latest design and development standards. That means using an HTML5 doctype and a viewport meta tag for proper responsive behaviors. Get started by including Bootstrap’s production-ready CSS and JavaScript via CDN without the need for any build steps.
For the Bootstrap-Nice-Select component, we use Font Awesome 6 as the default icons, so we need to import the icons link too. If you want to change it, look in the docs and set a different default icon set or use your own icons.
Put it all together, your pages should look like the following: