Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @smarthtmlelements/smart-accordion with all npm packages installed. Try it out:

@smarthtmlelements/smart-accordion lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("@smarthtmlelements/smart-accordion/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@smarthtmlelements/smart-accordion v4.6.0

Smart Accordion

Smart Accordion Element Tweet

 Slack Price npm GitHub package version License: APACHE Published on webcomponents.org

<smart-accordion>

Live Demo ↗ | Documentation ↗ | Installation ↗

<smart-accordion> is a Custom HTML Element with expandable panels, part of the Smart HTML Elements. Each panel has header and content.

```html ```

Screenshot of smart-accordion, using the Material theme

Screenshot of smart-accordion mobile, using the Material theme

Getting Started

Smart HTML Elements components documentation includes getting started, customization and api documentation topics.

Getting Started Documentation | CSS Documentation | API Documentation

The file structure for Smart HTML Elements

  • source/

    Javascript files.

  • source/styles/

    Component CSS Files.

  • demos/

    Demo files

Running demos in browser

  1. Fork the Smart-HTML-Elements-Core repository and clone it locally.

  2. Make sure you have npm installed.

  3. When in the Smart-HTML-Elements-Core directory, run npm install and then bower install to install dependencies.

  4. Run a localhost or upload the demo on a web server. Then run:

  • /demos/smart-accordion/smart-accordion-overview.htm

Following the coding style

We are using ESLint for linting JavaScript code.

Creating a pull request

  • Make sure your code is compliant with ESLint
  • Submit a pull request with detailed title and description
  • Wait for response from one of our team members

License

Apache License 2.0

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free