🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@commercetools-uikit/spacings-inline

Package Overview
Dependencies
Maintainers
3
Versions
917
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools-uikit/spacings-inline

An inline spacing component renders its children horizontally with a consistent spacing between them.

preview
Source
npmnpm
Version
0.0.0-preview-FCT-1187-20241024123200
Version published
Weekly downloads
7.9K
-13.14%
Maintainers
3
Weekly downloads
 
Created
Source

Inline

Description

If you want to learn more about the spacing components take a look at this article.

Usage

import SpacingsInline from '@commercetools-uikit/spacings-inline';

<SpacingsInline scale="m">
  <FlatButton />
  <FlatButton />
  <FlatButton />
</SpacingsInline>;

Using Spacings preset

Inline spacing can be imported and used via spacings preset as well.

import Spacings from '@commercetools-uikit/spacings';

<Spacings.Inline scale="m">
  <FlatButton />
  <FlatButton />
  <FlatButton />
</Spacings.Inline>;

Properties

PropsTypeRequiredValuesDefault
scaleString-['xs', 's', 'm', 'l', 'xl']s
alignItemsoneOf-['stretch', 'flex-start', 'flex-end', 'center', 'baseline']flex-start
justifyContentoneOf-['flex-start', 'flex-end', 'center', 'space-between', 'space-around', 'space-evenly']flex-start
childrenPropTypes.node---

If you need to use flex-wrap CSS property, consider using instead the component <Grid />.

Scales

ScalePixel
xs4
s8
m16
l24
xl32

Keywords

javascript

FAQs

Package last updated on 24 Oct 2024

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