Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

priyesh18/angular-elements-accordion

Open more actions menu

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

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.