@djx/spacer

0.2.0 • Public • Published

@djx/spacer

A spacer to normalize spaces between elements

Installation

npm install --save @djx/spacer

Usage

Make sure you import the component somewehere in your application first:

import '@djx/spacer';

You can then use it like normal web components in your markup:

<p>Text</p>
<djx-spacer size="xs"></djx-spacer>
<p>Text 2</p>
<djx-spacer size="xs"></djx-spacer>
<djx-spacer size="md"></djx-spacer>

The spacer uses fluid-size to deal with interpolation from min to max

Variables

Name Description Default
DJX_SPACER Map of spacings from MIN to MAX See here

For more variables see here

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @djx/spacer

    Weekly Downloads

    2

    Version

    0.2.0

    License

    ISC

    Unpacked Size

    2.32 kB

    Total Files

    3

    Last publish

    Collaborators

    • dorfjungs.account
    • schmidtsonian
    • joshuakeck