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
- Host: GitHub
- URL: https://github.com/dckt/spacer-web
- Owner: DCKT
- Created: 2019-07-13T19:33:27.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-13T19:39:42.000Z (almost 7 years ago)
- Last Synced: 2025-04-05T16:35:04.149Z (about 1 year ago)
- Topics: react, reason-react, reasonml, utility
- Language: OCaml
- Size: 3.91 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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}
};
```