Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Spacing

The spacing class provides a set of constants that can be used for style spacing values such as margin or padding. Usually the Margin or Padding style mixins are used instead

example
Using the values ```ts import { ViewStyle } from '@ef-carbon/react-native-style'; import { spacing } from '@ef-carbon/react-native-style'; const style: ViewStyle = { padding: spacing.normal, margin: spacing.large, }; @see Length @see Divisions

Hierarchy

Implements

Index

Constructors

constructor

  • new Spacing(__namedParameters?: object): Spacing

Accessors

100

  • get 100(): number

200

  • get 200(): number

300

  • get 300(): number

400

  • get 400(): number

500

  • get 500(): number

600

  • get 600(): number

700

  • get 700(): number

800

  • get 800(): number

900

  • get 900(): number

huge

  • get huge(): number

large

  • get large(): number

larger

  • get larger(): number

largest

  • get largest(): number

normal

  • get normal(): number

small

  • get small(): number

smaller

  • get smaller(): number

smallest

  • get smallest(): number

tiny

  • get tiny(): number

Methods

__@toPrimitive

  • __@toPrimitive(hint: "string" | "number" | "default"): number | string