# @amendable/expand-style-shorthands

> This expands style shorthand syntax (`padding: 1`) into long-hand syntax (`paddingTop: 1, paddingRight: 1, paddingBottom: 1, paddingLeft: 1`).

Latest version **0.1.0** (published 2020-02-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @amendable/expand-style-shorthands
pnpm add @amendable/expand-style-shorthands
yarn add @amendable/expand-style-shorthands
bun add @amendable/expand-style-shorthands
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2020-02-26 |
| First published | 2019-06-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 16 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | jpalumickas, nedomas, saimis |

## Links

- npm: https://www.npmjs.com/package/@amendable/expand-style-shorthands
- Repository: https://github.com/amendable/expand-style-shorthands
- Issues: https://github.com/amendable/expand-style-shorthands/issues
- npm.io page: https://npm.io/package/@amendable/expand-style-shorthands

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [is-number](https://npm.io/package/is-number.md) ^7.0.0
- [inline-style-expand-shorthand](https://npm.io/package/inline-style-expand-shorthand.md) ^1.2.0

## Recent versions

- 0.1.0 (latest) — 2020-02-26
- 0.0.3 — 2020-02-03
- 0.0.2 — 2019-06-07
- 0.0.1 — 2019-06-06

## README

# Expand style shorthands

This expands style shorthand syntax (`padding: 1`) into long-hand syntax (`paddingTop: 1, paddingRight: 1, paddingBottom: 1, paddingLeft: 1`).

## Usage
```jsx sandbox
import { render } from 'react-dom'
import Box, { AmendableProvider } from '@amendable/core'
import expandStyleShorthands from '@amendable/expand-style-shorthands'
import inlineStyles from '@amendable/inline-styles'

render(
  <AmendableProvider
    resolvers={[
      expandStyleShorthands(),
      inlineStyles()
    ]}
  >
    <Box padding='10px' backgroundColor='black' color='white'>
      Padding is expanded on the DOM node
    </Box>
  </AmendableProvider>
)
```

## Supported props

It supports all the props that [inline-style-expand-shorthand](https://www.npmjs.com/package/inline-style-expand-shorthand)
supports.

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