Margin

Overview

BigDesign provides a margin prop which can be used for some of our components. Check out a component's prop table to see if the component inherits this prop.

Implementation

The following example showcases the simplest way to use the margin prop by giving it a Spacing value.

Edit the code below to see your changes live!

<Button margin="medium">Example</Button>

Props

Prop name
Type
Default
Description
marginSpacing

Determines the margin to be applied.

marginTopSpacing

Determines the top margin to be applied.

marginRightSpacing

Determines the right margin to be applied.

marginBottomSpacing

Determines the bottom margin to be applied.

marginLeftSpacing

Determines the left margin to be applied.

marginVerticalSpacing

Determines the top and bottom margin to be applied.

marginHorizontalSpacing

Determines the left and right margin to be applied.

Props ending with * are required