Select with Select2

Theming of the form-item--select using the Select2 library.

The component is fully accessible, and will give you a filter search bar when you have more than 20 options.

It is possible using the Javascript selector to only use Select2 on a few selects, instead of all of them by default.

Specifications

Machine name

form-item--select

Built upon

Drupal Core

Perks

Using Sass
Responsive
Using Drupal behaviours
Accessible

Drawbacks

Uses jQuery

Building blocks

HTML
CSS
Javascript

Inspired by

Flat design

Stats

Public component
26 downloads
No open issue

Contributors