Inset Squish
Description
If you want to learn more about the spacing components take a look at
this
article.
Usage
import SpacingsInsetSquish from '@commercetools-uikit/spacings-inset-squish';
<div className={styles.background}>
<SpacingsInsetSquish scale="m">
<Text.Detail>{/* SUBMIT */}</Text.Detail>
</SpacingsInsetSquish>
</div>;
Using Spacings preset
InsetSquish spacing can be imported and used via spacings preset as well.
import Spacings from '@commercetools-uikit/spacings';
<div className={styles.background}>
<Spacings.InsetSquish scale="m">
<Text.Detail>{/* SUBMIT */}</Text.Detail>
</Spacings.InsetSquish>
</div>;
Properties
scale | String | - | ['s', 'm', 'l'] | m |
height | String | - | collapsed, expanded | collapsed |
children | PropTypes.node | - | - | - |
Scales