Skip to content
This repository has been archived by the owner on Sep 12, 2020. It is now read-only.

Bridge Stimulus controllers with Web Components and get the best of both worlds

License

Notifications You must be signed in to change notification settings

whitefusionhq/stimulus-web-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Bridge Stimulus controllers with Web Components and get the best of both worlds

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published