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
- Host: GitHub
- URL: https://github.com/polight/lego-demo
- Owner: Polight
- Created: 2022-05-15T06:18:02.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-20T07:18:57.000Z (4 months ago)
- Last Synced: 2025-06-20T08:28:46.232Z (4 months ago)
- Topics: native, react, riot, standard, svelte, vue, w3c, webcomponents
- Language: HTML
- Homepage: https://polight.github.io/lego-demo/
- Size: 57.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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).