Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

wired-button

v1.0.0arrow_drop_down
v1.0.0
v0.9.2
STATUS
Passing
DOWNLOADS
16
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
7 months ago
SIZE
12 KB
Hand-drawn sketchy Button web component.
1 contributor
Use wired-button in your project ?
Copied
npm i @bit/wiredjs.wired-elements.wired-button
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
modifieddraft
chevron_left
chevron_right

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 © Preet Shihn