stimulite
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

Purpose

Coming soon...

Why data-lite-target and not data-[identifier]-target=""

Because It's verbose and I don't like it?

It also means we have a static attribute to listen for so we don't need to listen to every attribute change making the attribute filter more performant.

Why no data-action

I have personally never liked data-action. I find that the markup easily gets lost when refactoring, and it also presents a CSP issue when unsafe functions are bound to controller.

Further Reading: https://github.com/hotwired/stimulus/blob/main/SECURITY.md

Why no data-[identifier]-outlet, data-[value-name]-value, data-[identifier]-class

I don't find myself reaching for these things.

Readme

Keywords

none

Package Sidebar

Install

npm i stimulite

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

29.3 kB

Total Files

12

Last publish

Collaborators

  • konnor_rogers