@crystallized/controllers

5.0.0 • Public • Published

❄️ Crystallized Controllers

npm

This package, as part of the Crystallized project, provides:

  • DeclarativeActionsController - lets you add action attributes to elements as a way of providing declarative event handlers.

  • TargetsController - lets you easily query child nodes in the DOM using either selectors or explicit attribute-based identifiers.

You can use Lit (a library for building fast, reactive web components) along with these controllers, or you can build your own "vanilla" web components and enhance them with the full suite of Crystallized utilities. The entire library is under 7KB (before compression!) and has no dependencies.

Documentation is available in the main repo Readme.

Contributing

  1. Fork it (https://github.com/whitefusionhq/crystallized/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @crystallized/controllers

Weekly Downloads

1

Version

5.0.0

License

MIT

Unpacked Size

18.2 kB

Total Files

7

Last publish

Collaborators

  • jaredwhite