2.1.0 • Published 4 years ago

wired-card v2.1.0

Weekly downloads
145
License
MIT
Repository
github
Last release
4 years ago

wired card

wired-card

wired-card is a container for other web elements - with a hand-drawn, wireframe like, look.

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

Usage

Add wired-card to your project:

npm i wired-card

Import wired-card definition into your HTML page:

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

Or into your module script:

import { WiredCard } from "wired-card"

Use it in your web page:

<wired-card>
  <p>Elevation: 1</p>
</wired-card>

<wired-card elevation="3">
  <p>Elevation: 3</p>
</wired-card>

Properties

elevation - Numerical number between 1-5 (inclusive) - sets the elevation of the card. Default is 1.

fill - A color to fill the background of the card in a sketchy format

Methods

requestUpdate() - When dynamically adding content to the card, call this method to recompute the boundaries of the card.

License

MIT License (c) Preet Shihn

2.1.0

4 years ago

2.0.2

4 years ago

2.0.0

5 years ago

2.0.0-alpha.1

5 years ago

2.0.0-alpha.0

5 years ago

1.0.0

5 years ago

1.0.0-alpha.0

5 years ago

0.9.1

5 years ago

0.9.0

5 years ago

0.9.0-1

5 years ago

0.9.0-0

5 years ago

0.8.1

6 years ago

0.8.0

6 years ago

0.8.0-0

6 years ago

0.6.5

6 years ago

0.6.0

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago