Click-triggered lightning canvas effect for any DOM element.
This is a bun workspaces monorepo.
packages/lighting-element— the libraryexamples/example— vanilla HTML/TS demoexamples/react— React demo
bun installRun a demo:
bun --filter lighting-element-example dev
bun --filter react-example-app devBuild the library:
bun --filter lighting-element buildimport 'lighting-element'Add the lighting-element class to any element you want the effect on:
<button class="lighting-element">click me</button>bun run eslint— lint TS/JS sourcesbun run stylelint— lint CSSbun run reset— clean all node_modules and the lockfile
