@vaadin-component-factory/vcf-autocomplete
v3.0.0
Published
Web Component with a text input that provides a panel of suggested options.
Downloads
1,397
Readme
<vcf-autocomplete>
This is the npm version vcf-autocomplete developed using Lit.
Live demo ↗ | API documentation ↗

Important information about versioning
Earlier releases used the Vaadin major version as the component major version (for example, 24.x), which does not follow Semantic Versioning guidelines.
As part of restoring a proper semantic versioning scheme:
- The existing
24.xweb component version should be considered as version 2.x. - If any fixes or adjustments are needed for that version, they will be released as 2.x (not
24.x). - New development for Vaadin 25 continues in the 3.x major line.
Installation
Install vcf-autocomplete:
npm i @vaadin-component-factory/vcf-autocomplete --saveUsage
Once installed, import it in your application:
import '@vaadin-component-factory/vcf-autocomplete';Add <vcf-autocomplete> to the page. In attribute options you should declare options that will be offered for user to select. All change listener to the element in which you will update options appribute.
<vcf-autocomplete id="demo1" label="Choose country" placeholder="Start typing a country name..." options="[[options]]">
</vcf-autocomplete>Running demo
Fork the
vcf-autocompleterepository and clone it locally.Make sure you have npm installed.
When in the
vcf-autocompletedirectory, runnpm installto install dependencies.Run
npm startto open the demo.
Contributing
To contribute to the component, please read the guideline first.
License
Apache License 2
