JavaScript
The Rails defaults leverage Stimulus.js and Turbo from the Hotwire network of interactive tools. Rails UI follows the same conventions.
Stimulus
Bundled with Rails UI is an external library we authored called railsui-stimulus. This is an extraction of the JavaScript driven patterns we find ourselves repeating in many themes and other apps. They can be leveraged outside of Rails UI entirely and is included when you install Rails UI.
Each theme you install comes with railsui-stimulus pre-installed and configured.
For more information check out railsui-stimulus.