1.0.4 • Published 4 years ago
shadowcomp v1.0.4
What is this?
Get perfect shadows every time for non-designer.
Installation
npm i shadowcomp --save
Usage
import { shadowComponent } from 'shadowcomp';
shadowComponent({
shadow_type: 'soft',
padding: false
});
OR
import { shadowComponent } from 'shadowcomp';
const shadowOptions = {
shadow_type: 'soft',
padding: true
};
shadowComponent(shadowOptions);
In HTML add the class bashadowComp
to the desired image and you will get the shadow.
Options
ShadowComponent supports 2 options, both of which are optional:
- shadow_type - hard | soft (Default set to soft)
- padding - boolean (Default set to false)