@@ -36,7 +36,7 @@ const InsetSquish = (props: TInsetSquishProps) => (
);
const defaultProps: Pick
= {
scale: 'm',
- height: 'auto',
+ height: 'collapsed',
};
InsetSquish.displayName = 'InsetSquish';
InsetSquish.defaultProps = defaultProps;
diff --git a/packages/components/spacings/spacings-inset/README.md b/packages/components/spacings/spacings-inset/README.md
index 5c207de382..2a79b84f51 100644
--- a/packages/components/spacings/spacings-inset/README.md
+++ b/packages/components/spacings/spacings-inset/README.md
@@ -26,11 +26,11 @@ import Spacings from '@commercetools-uikit/spacings';
## Properties
-| Props | Type | Required | Values | Default |
-| ---------- | ---------------- | :------: | ----------------------------- | ------- |
-| `scale` | `String` | - | `['xs', 's', 'm', 'l', 'xl']` | `x` |
-| `height` | `String` | - | `auto`, `100%` | `auto` |
-| `children` | `PropTypes.node` | - | - | - |
+| Props | Type | Required | Values | Default |
+| ---------- | ---------------- | :------: | ----------------------------- | ----------- |
+| `scale` | `String` | - | `['xs', 's', 'm', 'l', 'xl']` | `x` |
+| `height` | `String` | - | `collapsed`, `expanded` | `collapsed` |
+| `children` | `PropTypes.node` | - | - | - |
## Scales
diff --git a/packages/components/spacings/spacings-inset/src/inset.tsx b/packages/components/spacings/spacings-inset/src/inset.tsx
index 457766d27a..0ee6e030ff 100644
--- a/packages/components/spacings/spacings-inset/src/inset.tsx
+++ b/packages/components/spacings/spacings-inset/src/inset.tsx
@@ -24,7 +24,7 @@ const getPadding = (scale?: TScale) => {
export type TInsetProps = {
scale: TScale;
- height: 'auto' | '100%';
+ height: 'collapsed' | 'expanded';
children?: ReactNode;
};
@@ -32,7 +32,7 @@ const Inset = (props: TInsetProps) => (
@@ -41,7 +41,7 @@ const Inset = (props: TInsetProps) => (
);
const defaultProps: Pick = {
scale: 'm',
- height: 'auto',
+ height: 'collapsed',
};
Inset.displayName = 'Inset';
Inset.defaultProps = defaultProps;