Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

wired-input

2.1.1 • Public • Published

wired input

wired-input

Hand-drawn sketchy text input web component.

For demo and view the complete set of wired-elememts: wiredjs.com

Usage

Add wired-input to your project:

npm i wired-input

Import wired-input definition into your HTML page:

<script type="module" src="wired-input/lib/wired-input.js"></script>

Or into your module script:

import { WiredInput } from "wired-input"

Use it in your web page:

<wired-input></wired-input>
<wired-input placeholder="Enter name"></wired-input>
<wired-input type="password" placeholder="Password"></wired-input>
<wired-input placeholder="Disabled" disabled></wired-input>

Properties

placeholder - Placeholder text for the input.

disabled - disables the control

type - Input type e.g. password

value - Value of the text.

Events

Fires all events a standard <input> element fires.

License

MIT License (c) Preet Shihn

Install

npm i wired-input

DownloadsWeekly Downloads

81

Version

2.1.1

License

MIT

Unpacked Size

15.7 kB

Total Files

7

Last publish

Collaborators

  • avatar