Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 469 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 469 Bytes

Pargin will save you

Are you tired of writing margin and padding?

If so this package if for you, with this you can easily write margin and padding at the same time.

This library is only supports for JSS

Installation:

npm install pargin

Usage:

import pargin from 'pargin'

<div style={{ ...pargin(4, 5, 5, 6) }}>
    Pargin is so cool
</div>

Arguments are passed according to regular margin or padding rule: top, right, bottom and left.