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

2.1.0 • Public • Published

wired fab

wired-fab

Hand-drawn sketchy Floating Action Button (FAB)

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

Usage

Add wired-fab to your project:

npm i wired-fab

Import wired-fab definition into your HTML page:

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

Or into your module script:

import { WiredFab } from "wired-fab"

Use it in your web page:

<wired-fab id="btn1">favorite</wired-fab>
<wired-fab id="btn2" class="red">close</wired-fab>

Properties

disabled - disables the button. Default value is false.

Custom CSS Properties

--wired-fab-bg-color - Background color of the fab. Default value is #018786. Foreground color is set by setting the color css property.

Events

click - When button is clicked/submitted

License

MIT License (c) Preet Shihn

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i wired-fab

    Weekly Downloads

    35

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    9.35 kB

    Total Files

    7

    Last publish

    Collaborators

    • shihn