{"id":15462963,"url":"https://github.com/vaadin/vaadin-accordion","last_synced_at":"2025-04-22T10:43:11.544Z","repository":{"id":33972358,"uuid":"131836891","full_name":"vaadin/vaadin-accordion","owner":"vaadin","description":"The Web Component for accordions. Part of the Vaadin components.","archived":false,"fork":false,"pushed_at":"2025-02-10T10:09:25.000Z","size":5632,"stargazers_count":9,"open_issues_count":0,"forks_count":6,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-13T01:57:47.856Z","etag":null,"topics":["accordion","custom-elements","expansion-panels","vaadin","web-components","webcomponents"],"latest_commit_sha":null,"homepage":"https://vaadin.com/components","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vaadin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-02T10:45:20.000Z","updated_at":"2025-02-10T10:09:30.000Z","dependencies_parsed_at":"2023-02-18T14:20:45.739Z","dependency_job_id":"14a7581a-3335-4d28-a459-78045662eb2f","html_url":"https://github.com/vaadin/vaadin-accordion","commit_stats":{"total_commits":90,"total_committers":9,"mean_commits":10.0,"dds":0.5444444444444445,"last_synced_commit":"9306db84ca42e26f6004c07fae1a041732d6a9f2"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaadin%2Fvaadin-accordion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaadin%2Fvaadin-accordion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaadin%2Fvaadin-accordion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaadin%2Fvaadin-accordion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vaadin","download_url":"https://codeload.github.com/vaadin/vaadin-accordion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250222326,"owners_count":21394851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["accordion","custom-elements","expansion-panels","vaadin","web-components","webcomponents"],"created_at":"2024-10-02T00:06:23.802Z","updated_at":"2025-04-22T10:43:11.520Z","avatar_url":"https://github.com/vaadin.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u0026lt;vaadin-accordion\u0026gt;\n\n\u003e ⚠️ Starting from Vaadin 20, the source code and issues for this component are migrated to the [`vaadin/web-components`](https://github.com/vaadin/web-components/tree/master/packages/vaadin-accordion) monorepository.\n\u003e This repository contains the source code and releases of `\u003cvaadin-accordion\u003e` for the Vaadin versions 10 to 19.\n\n[\u0026lt;vaadin-accordion\u0026gt;](https://vaadin.com/components/vaadin-accordion) is a Web Component implementing the vertically stacked set of expandable panels, part of the [Vaadin components](https://vaadin.com/components).\n\n[Live Demo ↗](https://vaadin.com/components/vaadin-accordion/html-examples)\n|\n[API documentation ↗](https://vaadin.com/components/vaadin-accordion/html-api)\n\n[![npm version](https://badgen.net/npm/v/@vaadin/vaadin-accordion)](https://www.npmjs.com/package/@vaadin/vaadin-accordion)\n[![Bower version](https://badgen.net/github/release/vaadin/vaadin-accordion)](https://github.com/vaadin/vaadin-accordion/releases)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/vaadin/vaadin-accordion)\n[![Build Status](https://travis-ci.org/vaadin/vaadin-accordion.svg?branch=master)](https://travis-ci.org/vaadin/vaadin-accordion)\n[![Coverage Status](https://coveralls.io/repos/github/vaadin/vaadin-accordion/badge.svg?branch=master)](https://coveralls.io/github/vaadin/vaadin-accordion?branch=master)\n[![Published on Vaadin Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/vaadinvaadin-accordion)\n[![Stars on vaadin.com/directory](https://img.shields.io/vaadin-directory/star/vaadin-accordion-directory-urlidentifier.svg)](https://vaadin.com/directory/component/vaadinvaadin-accordion)\n\u003c!--\n```\n\u003ccustom-element-demo\u003e\n  \u003ctemplate\u003e\n    \u003cscript src=\"../webcomponentsjs/webcomponents-lite.js\"\u003e\u003c/script\u003e\n    \u003clink rel=\"import\" href=\"vaadin-accordion.html\"\u003e\n    \u003cnext-code-block\u003e\u003c/next-code-block\u003e\n  \u003c/template\u003e\n\u003c/custom-element-demo\u003e\n```\n--\u003e\n```html\n\u003cvaadin-accordion\u003e\n  \u003cvaadin-accordion-panel theme=\"filled\"\u003e\n    \u003cdiv slot=\"summary\"\u003eAccordion Panel 1\u003c/div\u003e\n    \u003cdiv\u003eAccordion is a set of expandable sections.\u003c/div\u003e\n  \u003c/vaadin-accordion-panel\u003e\n  \u003cvaadin-accordion-panel theme=\"filled\"\u003e\n    \u003cdiv slot=\"summary\"\u003eAccordion Panel 2\u003c/div\u003e\n    \u003cdiv\u003eOnly one accordion panel can be opened.\u003c/div\u003e\n  \u003c/vaadin-accordion-panel\u003e\n\u003c/vaadin-accordion\u003e\n```\n\n[\u003cimg src=\"https://raw.githubusercontent.com/vaadin/vaadin-accordion/master/screenshot.png\" alt=\"Screenshot of vaadin-accordion\" width=\"900\"\u003e](https://vaadin.com/components/vaadin-accordion)\n\n\n## Installation\n\nThe Vaadin components are distributed as Bower and npm packages.\nPlease note that the version range is the same, as the API has not changed.\nYou should not mix Bower and npm versions in the same application, though.\n\nUnlike the official Polymer Elements, the converted Polymer 3 compatible Vaadin components\nare only published on npm, not pushed to GitHub repositories.\n\n### Polymer 2 and HTML Imports compatible version\n\nInstall `vaadin-accordion`:\n\n```sh\nbower i vaadin/vaadin-accordion --save\n```\n\nOnce installed, import it in your application:\n\n```html\n\u003clink rel=\"import\" href=\"bower_components/vaadin-accordion/vaadin-accordion.html\"\u003e\n```\n\n### Polymer 3 and ES Modules compatible version\n\n\nInstall `vaadin-accordion`:\n\n```sh\nnpm i @vaadin/vaadin-accordion --save\n```\n\nOnce installed, import it in your application:\n\n```js\nimport '@vaadin/vaadin-accordion/vaadin-accordion.js';\n```\n\n## Getting started\n\nVaadin components use the Lumo theme by default.\n\nTo use the Material theme, import the correspondent file from the `theme/material` folder.\n\n## Entry points\n\n- The component with the Lumo theme:\n\n  `theme/lumo/vaadin-accordion.html`\n\n- The component with the Material theme:\n\n  `theme/material/vaadin-accordion.html`\n\n- Alias for `theme/lumo/vaadin-accordion.html`:\n\n  `vaadin-accordion.html`\n\n\n## Running demos and tests in a browser\n\n1. Fork the `vaadin-accordion` repository and clone it locally.\n\n1. Make sure you have [npm](https://www.npmjs.com/) and [Bower](https://bower.io) installed.\n\n1. When in the `vaadin-accordion` directory, run `npm install` and then `bower install` to install dependencies.\n\n1. Make sure you have [polymer-cli](https://www.npmjs.com/package/polymer-cli) installed globally: `npm i -g polymer-cli`.\n\n1. Run `npm start`, browser will automatically open the component API documentation.\n\n1. You can also open demo or in-browser tests by adding **demo** or **test** to the URL, for example:\n\n  - http://127.0.0.1:3000/components/vaadin-accordion/demo\n  - http://127.0.0.1:3000/components/vaadin-accordion/test\n\n\n## Running tests from the command line\n\n\u003e [!WARNING]\n\u003e Running tests locally from the CLI does not work due to outdated dependencies. Run tests via SauceLabs or in the browser instead.\n\n1. When in the `vaadin-accordion` directory, run `polymer test`\n\n\n## Following the coding style\n\nWe are using [ESLint](http://eslint.org/) for linting JavaScript code. You can check if your code is following our standards by running `npm run lint`, which will automatically lint all `.js` files as well as JavaScript snippets inside `.html` files.\n\n\n## Big Thanks\n\nCross-browser Testing Platform and Open Source \u003c3 Provided by [Sauce Labs](https://saucelabs.com).\n\n\n## Contributing\n\nTo contribute to the component, please read [the guideline](https://github.com/vaadin/vaadin-core/blob/master/CONTRIBUTING.md) first.\n\n\n## License\n\nApache License 2.0\n\nVaadin collects development time usage statistics to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaadin%2Fvaadin-accordion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaadin%2Fvaadin-accordion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaadin%2Fvaadin-accordion/lists"}