Skip to content

priyesh18/angular-elements-accordion

Repository files navigation

Accordion web component made using angular elements

This component was made as a part of the tutorial. It can be directly used in any framework or vanilla js.
Tutorial link
Demo
Import the elements.js in the scripts tag. use the <custom-accordion><span slot="header">My header</span> <span slot="details">My content</span></custom-accordion>

To edit and build your on version

  1. Clone this repository
  2. Run npm install
  3. To build ng build --prod --output-hashing=none
  4. To make a package cat dist/accordion/{runtime,polyfills,scripts,main}.js > elements.js

About

Repo for "Creating a Reusable Accordion Component That Works Anywhere" article.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published