Coder Social home page Coder Social logo

yusufstawan / wokwi-elements Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wokwi/wokwi-elements

4.0 0.0 0.0 4.89 MB

Web Components for Electronics and IoT Parts

Home Page: https://elements.wokwi.com/

License: MIT License

Shell 0.01% JavaScript 0.28% Perl 0.21% TypeScript 99.37% EJS 0.01% Raku 0.11%

wokwi-elements's Introduction

Wokwi Elements

Web Components for Arduino and various electronic parts.

NPM Version Gitpod ready-to-code

Check out the component catalog.

Note: these elements only provide the presentation and display of the represented hardware. They do not provide the functional simulation code of the hardware. That is dependant on the application (simulator) that you wish to use these with, and thus up to you to create.

Using Wokwi Elements

You can install the package with npm and then import it into your code:

import '@wokwi/elements';

Alternatively, you can load the Wokwi Elements bundle from unpkg's CDN:

<script src="https://unpkg.com/@wokwi/[email protected]/dist/wokwi-elements.bundle.js"></script>

Replace 0.48.3 with the latest version number. You can find a list of all the versions in the releases page.

Local development

To prepare for local development, clone this repo, and then install the dependencies:

npm install

Then start storybook:

npm run storybook

This will open a local dev server at http://localhost:6006, where you can interact with the elements and see your changes live, similar to https://elements.wokwi.com.

Creating a new element

The easiest way to create a new element is to run the generator:

npm run new-element --name demo

This will generate a new element called demo. It will also create a storybook file, so you will be able to see the new element in storybook (see the "Local development" section above).

Note: updates the docstrings in the code will not be reflected in Storybook's Docs tab unless you restart Storybook, or run the following command manually and refresh the page:

npm run analyze-components

Check out the Contributing Guide for more details.

Learn how to create elements

Video tutorial

The Membrane keypad element live-coding tutorial walks through the complete process behind creating an element: research, drawing, and writing the code / stories.

Blog posts

License

Wokwi Elements are released under the MIT license.

wokwi-elements's People

Contributors

urish avatar ariellae avatar dependabot[bot] avatar arcostasi avatar lironhazan avatar matititam avatar sutaburosu avatar karinchechik avatar bonnyr avatar takuma-watanabe avatar arduino12 avatar yoavw avatar spinkelben avatar julianrendell avatar guy-michael avatar gfeun avatar gilf avatar yepher avatar duranda avatar ajtak avatar

Stargazers

 avatar  avatar Yusuf Setiyawan avatar testing avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.