Socket
Socket
Sign inDemoInstall

@commercetools-uikit/spacings-inset

Package Overview
Dependencies
75
Maintainers
3
Versions
684
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @commercetools-uikit/spacings-inset

An inset spacing component provides a consistent padding to the inner component.


Version published
Maintainers
3
Created

Readme

Source

Inset

Description

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

Usage

import SpacingsInset from '@commercetools-uikit/spacings-inset';

<SpacingsInset scale="m">{/* Container with padding 🎉  */}</SpacingsInset>;

Using Spacings preset

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

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

<Spacings.Inset scale="m">{/* Container with padding 🎉  */}</Spacings.Inset>;

Properties

PropsTypeRequiredValuesDefault
scaleString-['xs', 's', 'm', 'l', 'xl']x
heightString-collapsed, expandedcollapsed
childrenPropTypes.node---

Scales

ScalePixel
xs4
s8
m16
l24
xl32

Keywords

FAQs

Last updated on 08 May 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc