Interation

By default, Rails UI uses Rails defaults concerning JavaScript in a given application.

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 does leverage vanilla JavaScript, Stimulus.js, and Turbo to add dashes of interactivity to components in a given theme.

Inside the design system, you will find example code snippets for specific components that require more interactivity.

Rails UI supplies enough interaction logic to make basic components function, but you should extend it as your needs vary.