npm.io
1.0.4 • Published 4 years ago

color-block

Licence
Apache-2.0 License
Version
1.0.4
Deps
0
Size
37 kB
Vulns
0
Weekly
0

npm version NPM

COLOR BLOCK

Deadly simple web component to display a colored square. No dependencies !

What you write :

<color-block>#AA66DD</color-block>

What you get :

example

Works with a lot of css colors, check the complete demo page for examples and install instructions.

DEMO

https://mgohin.github.io/js-color-block/

What's next

This web-component needs to stay simple.

There are probably things to improve (code, build, styles), feel free to post issues, pull-requests etc.