← All modules

Magento 2 module · foundation

Select2

Provides the Select2 library for styled, searchable drop-down lists in the Magento storefront and admin, used by other Infrangible modules.

Select2 is a widely used open-source library that replaces plain browser drop-down lists with styled, more flexible selection boxes. This module makes the library (version 4.1.0-rc.0) and its stylesheet available in Magento, both in the storefront and in the admin, so that other modules can use it without each shipping their own copy.

Features

  • Adds the Select2 library to the Magento frontend and admin.
  • Includes the Select2 stylesheet, adapted to Magento’s style build.

Configuration

There is nothing to configure. On its own the module does not change any drop-down in the store; other modules decide where Select2 is used.

Good to know

Merchants normally do not install this module directly. It is pulled in by Catalog Product Option Select2 (a styled drop-down option type) and Catalog Product Option Qty (styled quantity selection for options).

Installation

Install the module with Composer in your Magento root directory:

composer require infrangible/m2-select2

Then enable it and update the store as described in the installation guide. Composer installs the required modules listed on this page automatically.