Skip to main content

Stimulus Library

An extensive library of stimulus controllers for all use cases

NPM DownloadsMinified Size

Vanilla

Nobody likes bloat, so wherever possible Stimulus-Library ships with zero third party dependencies. You won't find controllers here that simply wrap up other JS libraries like date-pickers. There are other libraries if that's what you want.

Stimulus-Library is just simple, vanilla controllers that do one simple thing.

Configurable

While Stimulus Library sets sensible defaults for all controllers, not all use-cases are the same. All of our controllers are built to to be as flexible and configurable as possible to enable your application. Found a use-case we didn't consider? Open a Github issue and let us know!

Comprehensive

Hate installing ~50 different node packages just to get ~50 different Javascript ✨Sprinkles✨? We provide you with a comprehensive set of lightweight controllers with the hope that when you find yourself needing a new behaviour, that we already have a controller that does it for you, without you having to install more packages.

The library is fully tree-shakable, so install Stimulus-Library guilt free - only the controllers that you use are bundled into your application.

Fire and Forget

While all controllers in Stimulus-Library are composable and provide a comprehensive set of events that you can use to wire together multiple controllers - for simple things like auto-sizing text-areas, you shouldn't have to remember to wire up the various DOM events to the corresponding Stimulus action, you should be able to just drop it in and forget about it.

Stimulus-Library, where it seems sensible, creates controllers that you can just "Fire and Forget". If you don't like that, you can turn it off and wire things up yourself. You're the boss.

Just Works (TM)

Stimulus Library aims to provide you with a toolbox of useful controllers that you can just drop into your application and they just work, seamlessly.