Accordion for Vaadin Flow is a UI component add-on for Vaadin which provides an accordion component.
- Sources for this flow component can be found at https://github.com/vaadin/vaadin-flow-components
- Tickets has been moved to the web component repository https://github.com/vaadin/vaadin-accordion/issues
Apache License 2.0
Vaadin Accordion is written by Vaadin Ltd.
Add Accordion to your project
<dependencies>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-accordion-flow</artifactId>
<version>${vaadin.accordion.version}</version>
</dependency>
</dependencies>
Accordion accordion = new Accordion();
accordion.add("Red", redContent);
accordion.add("Orange", orangeContent);
accordion.add("Yellow", yellowContent);
accordion.addOpenedChangedListener(event ->
Notification.show(event.getOpenedPanel().get().getSummaryText() + " opened"));
Clone the project in GitHub (or fork it if you plan on contributing)
git clone git@github.com:vaadin/vaadin-accordion-flow.git
To build and install the project into the local repository run
mvn install -DskipITs
in the root directory. -DskipITs
will skip the integration tests, which require a TestBench license. If you want to run all tests as part of the build, run
mvn install
To compile and run demos locally execute
mvn compile
mvn -pl vaadin-accordion-flow-demo -Pwar jetty:run