wired-image displays an image and draws a sketchy border around it.
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 { WiredImage } from 'wired-elements';
// or
import { WiredImage } from 'wired-elements/lib/wired-image.js';Or load directly into your HTML page:
<script type="module" src="https://unpkg.com/wired-elements/lib/wired-image.js?module"></script>Use it in your HTML:
<wired-image src="https://www.gstatic.com/webp/gallery/1.sm.jpg"></wired-image>
<wired-image elevation="4" src="https://www.gstatic.com/webp/gallery/1.sm.jpg"></wired-image>src - URL of the image.
elevation - Numerical number between 1-5 (inclusive) - sets the elevation of the card. Default is 1.