All Projects → vaadin → vaadin-text-field

vaadin / vaadin-text-field

Licence: Apache-2.0 License
The themable Web Component providing input controls. Part of the Vaadin components.

Programming Languages

HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vaadin-text-field

Vaadin Combo Box
The Web Component for displaying a list of items with filtering. Part of the Vaadin components.
Stars: ✭ 113 (+289.66%)
Mutual labels:  web-component, polymer, webcomponents, custom-elements, vaadin
Vaadin Grid
vaadin-grid is a free, high quality data grid / data table Web Component. Part of the Vaadin components.
Stars: ✭ 383 (+1220.69%)
Mutual labels:  web-component, webcomponents, custom-elements, vaadin
vaadin-icons
Vaadin Icons is a collection of 600+ unique icons designed for web applications
Stars: ✭ 59 (+103.45%)
Mutual labels:  web-component, polymer, webcomponents, vaadin
Vaadin Upload
The Web Component for uploading multiple files with progress indication. Part of the Vaadin components.
Stars: ✭ 87 (+200%)
Mutual labels:  web-component, polymer, webcomponents, vaadin
vaadin-split-layout
The Web Component which allows you to partition a layout into resizeable areas. Part of the Vaadin components.
Stars: ✭ 40 (+37.93%)
Mutual labels:  web-component, polymer, webcomponents, vaadin
Vaadin Form Layout
The Web Component providing configurable responsive layout for form elements. Part of the Vaadin components.
Stars: ✭ 15 (-48.28%)
Mutual labels:  web-component, polymer, webcomponents, vaadin
Vaadin Date Picker
The Web Component providing a date selection field with scrollable month calendar. Part of the Vaadin components.
Stars: ✭ 158 (+444.83%)
Mutual labels:  web-component, polymer, webcomponents, vaadin
vaadin-dialog
High quality web component for modal dialogs. Part of the Vaadin platform.
Stars: ✭ 15 (-48.28%)
Mutual labels:  web-component, polymer, webcomponents, vaadin
paper-chip
A chip web component made with Polymer 2 following Material Design guidelines
Stars: ✭ 30 (+3.45%)
Mutual labels:  polymer, webcomponents, input, custom-elements
multiselect-combo-box
A multi select combo box web component based on Polymer and the vaadin-combo-box
Stars: ✭ 41 (+41.38%)
Mutual labels:  polymer, webcomponents, vaadin
vaadin-context-menu
The responsive Web Component for showing context dependent items for any element on the page. Part of the Vaadin components.
Stars: ✭ 26 (-10.34%)
Mutual labels:  polymer, webcomponents, vaadin
Redux Store Element
A custom element allowing a more declarative use of Redux.
Stars: ✭ 83 (+186.21%)
Mutual labels:  polymer, webcomponents, custom-elements
Calcite Components
Web Components for the Calcite Design System. Built with Stencil JS. Currently in Beta!
Stars: ✭ 96 (+231.03%)
Mutual labels:  web-component, webcomponents, custom-elements
vaadin-checkbox
The Web Component for customized checkboxes. Part of the Vaadin components.
Stars: ✭ 18 (-37.93%)
Mutual labels:  polymer, webcomponents, vaadin
toggle-icon
toggle-icon is a custom element created with Polymer. It provides an extremely powerful and customizable switch that looks like a paper-icon-button.
Stars: ✭ 21 (-27.59%)
Mutual labels:  polymer, webcomponents, custom-elements
Vaadin
An evolving set of open source web components for building mobile and desktop web applications in modern browsers.
Stars: ✭ 424 (+1362.07%)
Mutual labels:  polymer, webcomponents, vaadin
Vaadin Core
An evolving set of free, open source web components for building mobile and desktop web applications in modern browsers.
Stars: ✭ 382 (+1217.24%)
Mutual labels:  polymer, webcomponents, vaadin
Awesome Polymer
A collection of awesome Polymer resources.
Stars: ✭ 384 (+1224.14%)
Mutual labels:  polymer, webcomponents, custom-elements
cwco
Powerful and Fast Web Component Library with a Simple API
Stars: ✭ 27 (-6.9%)
Mutual labels:  web-component, webcomponents, custom-elements
web-components
A set of high-quality standards based web components for enterprise web applications. Part of Vaadin 20+
Stars: ✭ 322 (+1010.34%)
Mutual labels:  webcomponents, custom-elements, vaadin

<vaadin-text-field>

⚠️ Starting from Vaadin 20, the source code and issues for this component are migrated to the vaadin/web-components monorepository. This repository contains the source code and releases of <vaadin-text-field> for the Vaadin versions 10 to 19.

<vaadin-text-field> is a themable Web Component providing input controls in forms, part of the Vaadin components.

Live Demo | API documentation

npm version Published on webcomponents.org Published on Vaadin Directory Discord

<vaadin-text-field label="Username"></vaadin-text-field>
<vaadin-password-field label="Password"></vaadin-password-field>
<vaadin-text-area label="Description"></vaadin-text-area>
<vaadin-email-field label="Email"></vaadin-email-field>
<vaadin-number-field label="Price"></vaadin-number-field>
<vaadin-integer-field label="Count" has-controls></vaadin-integer-field>

Screenshot of vaadin-text-field

Installation

The Vaadin components are distributed as Bower and npm packages. Please note that the version range is the same, as the API has not changed. You should not mix Bower and npm versions in the same application, though.

Unlike the official Polymer Elements, the converted Polymer 3 compatible Vaadin components are only published on npm, not pushed to GitHub repositories.

Polymer 2 and HTML Imports Compatible Version

Install vaadin-text-field:

bower i vaadin/vaadin-text-field --save

Once installed, import the components you need in your application:

<link rel="import" href="bower_components/vaadin-text-field/vaadin-text-field.html">
<link rel="import" href="bower_components/vaadin-text-field/vaadin-text-area.html">
<link rel="import" href="bower_components/vaadin-text-field/vaadin-password-field.html">
<link rel="import" href="bower_components/vaadin-text-field/vaadin-email-field.html">
<link rel="import" href="bower_components/vaadin-text-field/vaadin-number-field.html">
<link rel="import" href="bower_components/vaadin-text-field/vaadin-integer-field.html">

Polymer 3 and ES Modules Compatible Version

Install vaadin-text-field:

npm i @vaadin/vaadin-text-field --save

Once installed, import the components you need in your application:

import '@vaadin/vaadin-text-field/vaadin-text-field.js';
import '@vaadin/vaadin-text-field/vaadin-text-area.js';
import '@vaadin/vaadin-text-field/vaadin-password-field.js';
import '@vaadin/vaadin-text-field/vaadin-email-field.js';
import '@vaadin/vaadin-text-field/vaadin-number-field.js';
import '@vaadin/vaadin-text-field/vaadin-integer-field.js';

Getting started

Vaadin components use the Lumo theme by default.

To use the Material theme, import the correspondent file from the theme/material folder.

Entry points

  • The components with the Lumo theme:

    theme/lumo/vaadin-text-field.html theme/lumo/vaadin-text-area.html theme/lumo/vaadin-password-field.html theme/lumo/vaadin-email-field.html theme/lumo/vaadin-number-field.html theme/lumo/vaadin-integer-field.html

  • The components with the Material theme:

    theme/material/vaadin-text-field.html theme/material/vaadin-text-area.html theme/material/vaadin-password-field.html theme/material/vaadin-email-field.html theme/material/vaadin-number-field.html theme/material/vaadin-integer-field.html

  • Aliases for theme/lumo/vaadin-text-field.html theme/lumo/vaadin-text-area.html theme/lumo/vaadin-password-field.html theme/lumo/vaadin-email-field.html theme/lumo/vaadin-number-field.html theme/lumo/vaadin-integer-field.html:

    vaadin-text-field.html vaadin-text-area.html vaadin-password-field.html vaadin-email-field.html vaadin-number-field vaadin-integer-field

Running demos and tests in a browser

  1. Fork the vaadin-text-field repository and clone it locally.

  2. Make sure you have npm and Bower installed.

  3. When in the vaadin-text-field directory, run npm install and then bower install to install dependencies.

  4. Run npm start, browser will automatically open the component API documentation.

  5. You can also open demo or in-browser tests by adding demo or test to the URL, for example:

Running tests from the command line

  1. When in the vaadin-text-field directory, run polymer test

Following the coding style

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 as well as JavaScript snippets inside .html files.

Big Thanks

Cross-browser Testing Platform and Open Source <3 Provided by Sauce Labs.

Contributing

To contribute to the component, please read the guideline first.

License

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].