Accepted values for Margin.

Essentially, all the well-known HTML properties are available, but with predefined values.

See below for an example using some of the properties:

Example:

<View marginBottom="nano" >
<Text color="neutral-900">My awesome text</Text>
</View>

Hierarchy

Properties

margin?: string

General margin size

Check the token table to know which values to use

Example:

<margin="quark" />
marginBottom?: string

Bottom margin size

Check the token table to know which values to use

Example:

<marginBottom="quark" />
marginHorizontal?: string

Horizontal (left and right) margin size

Check the token table to know which values to use

Example:

<marginHorizontal="quark" />
marginLeft?: string

Left margin size

Check the token table to know which values to use

Example:

<marginLeft="quark" />
marginRight?: string

Right margin size

Check the token table to know which values to use

Example:

<marginRight="quark" />
marginTop?: string

Top margin size

Check the token table to know which values to use

Example:

<marginTop="quark" />
marginVertical?: string

Vertical (top and bottom) margin size

Check the token table to know which values to use

Example:

<marginVertical="quark" />