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
Add wired-elements to your JavaScript project:
npm i wired-elements
Import module in your code:
import { WiredCard } from 'wired-elements';
// or
import { WiredCard } from 'wired-elements/lib/wired-card.js';Or load directly into your HTML page:
<script type="module" src="https://unpkg.com/wired-elements/lib/wired-card.js?module"></script>Use it in your HTML:
<wired-card>
<p>Elevation: 1</p>
</wired-card>
<wired-card elevation="3">
<p>Elevation: 3</p>
</wired-card>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
requestUpdate() - When dynamically adding content to the card, call this method to recompute the boundaries of the card.