Rails UI ships with esbuild support. This is a matter of preference in terms of bundling and precompiling assets. When you install the gem, we automatically swap the default import maps solution.


The Rails defaults leverage Stimulus.js and Turbo from the Hotwire network of interactive tools.

Rails UI is not meant to replace any JavaScript front-end framework. However, it leverages Stimulus.js and Turbo to add dashes of interactivity to components in a given theme.

Most UI components come pre-built with JavaScript already integrated. You can tweak the Stimulus.js code at will following installation.

Remember that Rails UI supplies enough interaction logic to make basic components function with static data, but you will want to extend it as your needs require.

On this page