An open API service indexing awesome lists of open source software.

https://github.com/polight/lego-demo

Demo components for the Lego WebComponents Library
https://github.com/polight/lego-demo

native react riot standard svelte vue w3c webcomponents

Last synced: 3 months ago
JSON representation

Demo components for the Lego WebComponents Library

Awesome Lists containing this project

README

          

# Lego Web Components Demo

This place is a good start to experiment the [Lego Webcomponents Library](https://github.com/Polight/lego).

[Lego](https://lego.js.org) is a minimalistic web-component library to write HTML/CSS/JS that is modern, native and future-proof.

-[Read the documentation](https://lego.js.org).

## Usage of this demo

### Install Lego Tools

[Lego](https://lego.js.org/getting-started/) is simple to install:

```
npm install @polight/lego
```

or

```
yarn add @polight/lego
```

### Run

```
npx lego
```

or

```
yarn lego
```

Will transpile HTML components from _bricks/_ to JS components to _dist/_.

## Preview the demo

You should run your favorite local static server to view this demo site.

For example if Python3 is install on your computer you may run `python3 -m http.server` and open your browser at http://localhost:8000.

Of course you may use any other static page server like [http-server](https://github.com/http-party/http-server).