🚀 DAY 1 OF LAUNCH WEEK: Reachability for Ruby Now in Beta.Learn more →
Socket
Book a DemoInstallSign in
Socket

@djx/spacer

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@djx/spacer

Configurable spacer

latest
npmnpm
Version
0.2.0
Version published
Maintainers
3
Created
Source

@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

NameDescriptionDefault
DJX_SPACERMap of spacings from MIN to MAXSee here

For more variables see here

Keywords

spacer

FAQs

Package last updated on 16 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts