Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IMarginOptions

The options for the Margin class. they can customise the spacing and safe values. The values are usually pulled from the inside the Constants class, specifically the nested Spacing.

example
import { constants, Margin } from '@ef-carbon/react-native-styles';
const margin = new Margin({ spacing: constants.spacing, safe: constants.safe });

Hierarchy

  • IMarginOptions

Index

Properties

Properties

safe

safe: ISafe

The orientation aware safe spacing provider

see

Safe

spacing

spacing: ILength

The spacing values to use when creating the margin style mixins

see

Spacing