An open API service indexing awesome lists of open source software.

https://github.com/dckt/spacer-web

An utility component for pushing other elements and avoid `padding`, `margin` for the web
https://github.com/dckt/spacer-web

react reason-react reasonml utility

Last synced: about 2 months ago
JSON representation

An utility component for pushing other elements and avoid `padding`, `margin` for the web

Awesome Lists containing this project

README

          

# Spacer

An utility component for pushing other elements and avoid `padding`, `margin` everywhere.

## Usage

Install :

```console
$ yarn add @dck/spacer-web
```

### Web

```js
import Spacer from "@dck/spacer-web"

const App = () => {
return (


Hello



world



)
}
```

### ReasonML

Add the module to your `bsconfig.json` file :

```json
{
"bs-dependencies": ["@dck/spacer-web"]
}
```

Use it in your app code :

```reason
[@react.component]
let make = () => {


{"Hello" |> React.string}



{"World" |> React.string}



};
```