color-block
v1.0.4
Published
Simple web-component to display a color block from text
Downloads
1
Readme
COLOR BLOCK
Deadly simple web component to display a colored square. No dependencies !
What you write :
<color-block>#AA66DD</color-block>
What you get :
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.