New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

waterbox-component

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

waterbox-component

A simple web component displaying an isometric water box.

latest
Source
npmnpm
Version
0.2.3
Version published
Weekly downloads
7
133.33%
Maintainers
1
Weekly downloads
 
Created
Source

Waterbox Component

Waterbox

A simple web component displaying an isometric water box.

Installation

You can use NPM to install this component.

npm i --save waterbox-component

Usage

To use this web component in your project you can utilize one of the following styles of syntax.

/* In an existing module / web component */
import 'waterbox-component';
/* At top of an application */
<script type="module" src="node_modules/waterbox-component/dist/bundle.js"></script>
/* Alternatives for top of application */
<script type="module">
  import 'waterbox-component';
</script>

You can now use the component in your HTML:

<water-box value="50"></water-box>

This component is responsive. Simply set its width and height via CSS.

water-box {
  width: 100px;
  height: 180px;
}

Properties

PropertyAttributeTypeDescriptionExample
valuevalueNumberPercentual level of water.50
strokeColorstroke-colorStringStroke color.rgba(64,64,64,0.8)
fillColorfill-colorStringWater fill color.rgba(192,192,225,0.8)
boxColorbox-colorStringBox fill color.rgba(127,127,127,0.8)
strokeWidthstroke-widthNumberStroke width.2
separatorsseparatorsNumberNumber of scale separators.5
drawTopdraw-topBooleanWhether to draw the box ceiling.true
contrastcontrastNumberColor contrast.15

License

MIT

FAQs

Package last updated on 13 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts