@commercetools-uikit/spacings-inset
TypeScript icon, indicating that this package has built-in type declarations

19.7.0 • Public • Published

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

Props Type Required Values Default
scale String - ['xs', 's', 'm', 'l', 'xl'] x
height String - collapsed, expanded collapsed
children PropTypes.node - - -

Scales

Scale Pixel
xs 4
s 8
m 16
l 24
xl 32

Package Sidebar

Install

npm i @commercetools-uikit/spacings-inset

Weekly Downloads

14,678

Version

19.7.0

License

MIT

Unpacked Size

20.5 kB

Total Files

12

Last publish

Collaborators

  • emmenko
  • commercetools-admin
  • tdeekens