Migrating dependencies on Drupal core jQuery UI libraries
This documentation needs review. See "Help improve this page" in the sidebar.
jQuery UI libraries are no longer in core, but everything needed is in contrib
jQuery UI libraries are no longer provided by Drupal core.
If your modules/themes depend on a core jQuery UI library (i.e. depend on any library that begins with core/jquery.ui), they must be updated to depend on libraries provided by contrib modules instead. These contrib modules work with Drupal 9.2 and newer in addition to Drupal 10, so you can make this switch on an existing Drupal 9 site.
Use the table below to help you identify which contrib module(s) should be installed, and what the library name should be changed to.
- Find the library/libraries your code uses in the Removed Removed core asset library column,
- Download/require and install the corresponding Replacement contributed module and change the library name and configure your module/theme to depend on them
- Change any use of a Removed core asset library in your codebase to the corresponding Replacement library name
| Removed core asset library | Replacement library name + contrib module |
|---|---|
|
|
core/jquery.ui.accordion |
|
core/jquery.ui.autocomplete |
|
core/jquery.ui.button |
|
core/jquery.ui.checkboxradio |
|
core/jquery.ui.controlgroup |
|
core/jquery.ui.draggable |
|
core/jquery.ui.droppable |
|
|
|
core/jquery.ui.menu |
|
core/jquery.ui.progressbar |
|
core/jquery.ui.resizable |
|
core/jquery.ui.selectable |
|
core/jquery.ui.selectmenu |
|
core/jquery.ui.slider |
|
core/jquery.ui.spinner |
|
core/jquery.ui.tabs |
|
core/jquery.ui.tooltip |
|
Composer is recommended
If composer is used to add these modules, the correct versions and any necessary dependencies will automatically be installed.
If you're not using composer, be aware of the following
Be sure to install the recommended releases for any of the modules mentioned above. This means the core jquery_ui module must be 1.6 or newer, and all other jQuery UI modules must be version 2.0 or newer.
TLDR: install the corresponding contrib module(s) and change the corresponding library name(s), and that's it
You don't need to add any assets or create libraries yourself. The contrib modules take care of everything other than renaming the libraries your code depends on.
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion
Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.