Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 759 Bytes

README.md

File metadata and controls

15 lines (13 loc) · 759 Bytes

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