You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@commercetools-uikit/spacings-stack

Package Overview
Dependencies
Maintainers
3
Versions
736
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools-uikit/spacings-stack

A stack spacing component renders its children vertically with a consistent spacing between them.


Version published
Weekly downloads
0
Maintainers
3
Created
Weekly downloads
 

Readme

Source

Stack

Description

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

Usage

import SpacingsStack from '@commercetools-uikit/spacings-stack';

<SpacingsStack scale="m">
  <Card />
  <Card />
  <Card />
</SpacingsStack>;

Using Spacings preset

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

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

<Spacings.Stack scale="m">
  <Card />
  <Card />
  <Card />
</Spacings.Stack>;

Properties

PropsTypeRequiredValuesDefault
scaleString-['xs', 's', 'm', 'l', 'xl']s
alignItemsoneOf-['stretch', 'flex-start', 'flex-end', 'center']stretch
childrenPropTypes.node---

Scales

ScalePixel
xs4
s8
m16
l24
xl32

Keywords

FAQs

Package last updated on 29 Apr 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc