stimulus-web-components

0.1.3 • Public • Published

stimulus-web-components

This library lets you write Stimulus controllers that can also act as Web Components! So instead of writing:

<div data-controller="my-widget" data-my-widget-hue="blue">
  <button data-action="my-widget#engage">Engage!</button>
  …
</div>

You can write:

<stimulus-my-widget hue="blue">
  <button data-action="my-widget#engage">Engage!</button>
  …
</stimulus>

Stimulus Web Components supports element attributes and methods along with full support for the Shadow DOM!

More docs to follow

Readme

Keywords

none

Package Sidebar

Install

npm i stimulus-web-components

Weekly Downloads

1

Version

0.1.3

License

MIT

Unpacked Size

202 kB

Total Files

13

Last publish

Collaborators

  • jaredwhite