3.0.8 • Published 5 years ago

@fooloomanzoo/text-input v3.0.8

Weekly downloads
370
License
MIT
Repository
github
Last release
5 years ago

Published on NPM Published on webcomponents.org

API & Demo

\<text-input>

An input for text values.

Motivation

The normal input with type="text" is fairly good to use, but it has some flaws, because it should if wanted e.g.:

  • guarantee live-value to be valid
  • to be styled easily
  • auto resize on input

Example

  <p>
    hex-color: <text-input id="hex" value="{{value}}" input="{{input}}" default="#111" required pattern="^#(?:[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$" size="7" maxlength="7" minlength="4"></text-input>
  </p>
  <p>pattern: <b>^#(?:[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$</b></p>
  <p>input: <b>[[input]]</b></p>
  <p>value: <b>[[value]]</b></p>

Styling

Have a look at input-picker-pattern#input-shared-style to see how to style the element.

Installation

npm i @fooloomanzoo/text-input

License

MIT

3.0.8

5 years ago

3.0.7

5 years ago

3.0.6

5 years ago

3.0.5

5 years ago

3.0.4

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.9

5 years ago

2.0.8

6 years ago

2.0.7

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago