mani-rsg / box-shadow-package

My first npm package that adds box shadow to the html elements

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is this?

Get perfect shadows every time for the non-designers

Installation

npm i add-box-shadow --save

Add "box-shadow-pkg" as class name to the html elements that you wish to give a box shadow

Then...

import {addShadow} from "add-box-shadow";
addShadow({
    shadow_type: "soft",
    padding: false
})

Options

add-box-shadow supports 2 options, both of which are optional:

  • shadow_type - hard | soft (Defaults to soft)
  • padding - boolean (Defaults to false)

About

My first npm package that adds box shadow to the html elements


Languages

Language:JavaScript 100.0%