wired-button
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

wired button

wired-button

Hand-drawn sketchy Button web component.

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

Usage

Add wired-button to your project:

npm i wired-button

Import wired-button definition into your HTML page:

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

Or into your module script:

import { WiredButton } from "wired-button"

Use it in your web page:

<wired-button>Click Me</wired-button>
<wired-button disabled>Disabled</wired-button>
<wired-button elevation="3">Elevation</wired-button>

Properties

elevation - Number between 1 and 5 (inclusive) that gives the button a sketchy height. Default value is 1.

disabled - disables the button. Default value is false.

Events

click - When button is clicked/submitted

License

MIT License (c) Preet Shihn

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.0
    12
    • latest

Version History

Package Sidebar

Install

npm i wired-button

Weekly Downloads

32

Version

2.1.0

License

MIT

Unpacked Size

12.6 kB

Total Files

7

Last publish

Collaborators

  • shihn