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

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy