Switcher
This spacing component is inspired by the Switcher component from Every Layout.
Example
import Spacings from "@finanzchef24gmbh/design-system/spacings";
<Spacings.Switcher scale="medium" threshold="40em">
<Card />
<Card />
<Card />
</Spacings.Switcher>;
Properties
| Props | Type | Required | Values | Default |
|---|---|---|---|---|
scale | string | - | all Spacing.scales values are allowed | small |
threshold | string | ✅ | Any css length value | - |
children | ReactNode | - | - | - |