Live Demo ↗ | API documentation ↗
<vaadin-tabs> is a Polymer 2 element providing item navigation part of the Vaadin components. It is designed for menu and tab components.
<vaadin-tabs selected="3">
<vaadin-tab>Page 1</vaadin-tab>
<vaadin-tab>Page 2</vaadin-tab>
<vaadin-tab>Page 3</vaadin-tab>
<vaadin-tab>Page 4</vaadin-tab>
</vaadin-tabs>
Vaadin components use the Lumo theme by default.
-
src/vaadin-tab.html
-
src/vaadin-tabs.html
Unstyled components.
-
theme/lumo/vaadin-tab.html
-
theme/lumo/vaadin-tabs.html
Components with Lumo theme.
-
vaadin-tab.html
-
vaadin-tabs.html
Alias for theme/lumo/vaadin-tab.html theme/lumo/vaadin-tabs.html
-
Fork the
vaadin-tabs
repository and clone it locally. -
Make sure you have npm installed.
-
When in the
vaadin-tabs
directory, runnpm install
and thenbower install
to install dependencies. -
Run
polymer serve --open
, browser will automatically open the component API documentation. -
You can also open demo or in-browser tests by adding demo or test to the URL, for example:
- When in the
vaadin-tabs
directory, runpolymer test
We are using ESLint for linting JavaScript code. You can check if your code is following our standards by running gulp lint
, which will automatically lint all .js
files as well as JavaScript snippets inside .html
files.
- Make sure your code is compliant with our code linters:
gulp lint
- Check that tests are passing:
polymer test
- Submit a pull request with detailed title and description
- Wait for response from one of Vaadin components team members
Apache License 2.0
Vaadin collects development time usage statistics to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.