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>
- Clone this repository
- Run
npm install
- To build
ng build --prod --output-hashing=none
- To make a package
cat dist/accordion/{runtime,polyfills,scripts,main}.js > elements.js