UNPKG

wired-elements

Version:

Collection of hand-drawn sketchy web components

99 lines (61 loc) 4.01 kB
# wired-elements 👉 [wiredjs.com](https://wiredjs.com) Wired Elements is a series of basic UI Elements that have a hand drawn look. These can be used for wireframes, mockups, or just the fun hand-drawn look. ![alt Preview](https://i.imgur.com/qttPllg.png) ## Try now Play with wired-elements: [Wired Elements](https://codesandbox.io/s/wired-elements-vanilla-4bpny) #### Try it with a framework [Wired Elements in React](https://codesandbox.io/s/xrll5wyl8w) [Wired Elements in Vue](https://codesandbox.io/s/vj389y9375) [Wired Elements in Svelte](https://codesandbox.io/s/wired-elements-svelte-4hfkb) [Wired Elements in Angular](https://ng-run.com/edit/TRjDTfMDLaa1d7GRoXQd) ## Install The package (wired-elements) exports all components in the **_wired_** category. List of all wired elements can be found [here](https://github.com/wiredjs/wired-elements/tree/master/packages). Add wired-elements to your project: ``` npm i wired-elements ``` Or load the ES module directly through unpkg ```html <script type="module" src="https://unpkg.com/wired-elements"></script> ``` ## Usage Import into your module script: ```javascript import { WiredButton, WiredInput } from "wired-elements" ``` or ```javascript import { WiredButton } from 'wired-elements/lib/wired-button.js'; import { WiredInput } from 'wired-elements/lib/wired-input.js'; ``` #### Use it in your HTML: ```html <wired-input placeholder="Enter name"></wired-input> <wired-button>Click Me</wired-button> ``` Learn about web components [here](https://developer.mozilla.org/en-US/docs/Web/Web_Components). ## Component API To view details of each component - properties, events, css-properties, etc, are provided in the [docs folder](https://github.com/rough-stuff/wired-elements/tree/master/docs). ## Demo Demo of all components is available at [wiredjs.com](https://wiredjs.com/showcase.html). ## Contributors Become a sponsor of the [Rough suite of libraries](https://github.com/rough-stuff) ### Financial Contributors Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/rough/contribute)] #### Individuals <a href="https://opencollective.com/rough"><img src="https://opencollective.com/rough/individuals.svg?width=890"></a> #### Organizations Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/rough/contribute)] <a href="https://opencollective.com/rough/organization/0/website"><img src="https://opencollective.com/rough/organization/0/avatar.svg"></a> <a href="https://opencollective.com/rough/organization/1/website"><img src="https://opencollective.com/rough/organization/1/avatar.svg"></a> <a href="https://opencollective.com/rough/organization/2/website"><img src="https://opencollective.com/rough/organization/2/avatar.svg"></a> <a href="https://opencollective.com/rough/organization/3/website"><img src="https://opencollective.com/rough/organization/3/avatar.svg"></a> <a href="https://opencollective.com/rough/organization/4/website"><img src="https://opencollective.com/rough/organization/4/avatar.svg"></a> <a href="https://opencollective.com/rough/organization/5/website"><img src="https://opencollective.com/rough/organization/5/avatar.svg"></a> <a href="https://opencollective.com/rough/organization/6/website"><img src="https://opencollective.com/rough/organization/6/avatar.svg"></a> <a href="https://opencollective.com/rough/organization/7/website"><img src="https://opencollective.com/rough/organization/7/avatar.svg"></a> <a href="https://opencollective.com/rough/organization/8/website"><img src="https://opencollective.com/rough/organization/8/avatar.svg"></a> <a href="https://opencollective.com/rough/organization/9/website"><img src="https://opencollective.com/rough/organization/9/avatar.svg"></a> ## License [MIT License](https://github.com/rough-stuff/wired-elements/blob/master/LICENSE) (c) [Preet Shihn](https://twitter.com/preetster)