# hamadashadow

> Get perfect Hamada shadow every time form the non-disigner developer.

Latest version **8.8.0** (published 2020-04-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install hamadashadow
pnpm add hamadashadow
yarn add hamadashadow
bun add hamadashadow
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 8.8.0 |
| Published | 2020-04-14 |
| First published | 2020-04-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Hamada |
| Maintainers | hamada_j |
| Keywords | 'Command+Shift+h', in, Mac, or, 'alias, cls=hamada', in, Linux |

## Links

- npm: https://www.npmjs.com/package/hamadashadow
- Repository: https://github.com/hamada-j/hamadaShadow
- Homepage: https://github.com/hamada-j/hamadaShadow#readme
- Issues: https://github.com/hamada-j/hamadaShadow/issues
- npm.io page: https://npm.io/package/hamadashadow

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 8.8.0 (latest) — 2020-04-14

## README

# hamadaShadow

## What is this?

Get perfect Hamada shadow every time form the non-disigner developer.

## Installation

`npm i hamadaShadow --save`

## How to use?

```javascript
import { hamadaShadow } from "hamadaShadow";

hamadaShadow({
  shadow_type: "soft",
  padding: false,
});
```

## Options

hamadaShadow support 2 options:

- _shadow_type_ - _hard | soft_ ( By default to soft)
- _padding_ - _boolean_ (By default to false)

## Source Code

```javascript
function hamadaShadow(options) {
  let element = document.querySelectorAll(".hamadaShadow");

  if (options.shadow_type === "hard") options.shadow_type = "0px";
  else options.shadow_type = "15px";

  element.forEach((e) => {
    e.style.boxShadow = `10px 10px ${options.shadow_type} 1px rgb(0,0,0,0.12)`;
    if (options.padding) {
      e.style.padding = "1rem";
    }
  });
}
```

---
_Source: https://npm.io/package/hamadashadow · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
