Live Demo โ | API documentation โ
<vaadin-date-picker> is a Web Component providing a date selection field which includes a scrollable month calendar view, part of the Vaadin components.
<vaadin-date-picker label="Label" placeholder="Placeholder">
</vaadin-date-picker>
Install vaadin-date-picker
:
npm i @vaadin/vaadin-date-picker --save
Once installed, import it in your application:
import '@vaadin/vaadin-date-picker/vaadin-date-picker.js';
Vaadin components use the Lumo theme by default.
To use the Material theme, import the correspondent file from the theme/material
folder.
-
The components with the Lumo theme:
theme/lumo/vaadin-date-picker.js
theme/lumo/vaadin-date-picker-light.js
-
The components with the Material theme:
theme/material/vaadin-date-picker.js
theme/material/vaadin-date-picker-light.js
-
Alias for
theme/lumo/vaadin-date-picker.js
theme/lumo/vaadin-date-picker-light.js
:vaadin-date-picker.js
vaadin-date-picker-light.js
-
Fork the
vaadin-date-picker
repository and clone it locally. -
Make sure you have node.js 12.x installed.
-
Make sure you have npm installed.
-
When in the
vaadin-date-picker
directory, runnpm install
to install dependencies. -
Run
npm start
, browser will automatically open the component API documentation. -
You can also open visual tests, for example:
- When in the
vaadin-date-picker
directory, runnpm test
- Run
npm run debug
, then choose manual mode (M) and open the link in browser.
We are using ESLint 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.
Cross-browser Testing Platform and Open Source <3 Provided by Sauce Labs.
To contribute to the component, please read the guideline first.
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.