Search
Preparing search index...
The search index is not available
EF React Native Style Framework
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"Margin"
Margin
Class Margin
Provides mixins that can be used to add margin styles to components
example
Using the mixins
```ts import { ViewStyle } from 'react-native'; import { margin } from '@ef-carbon/react-native-style'; const style: ViewStyle = { ...margin.top.normal, ...margin.left.normal, ...margin.safe.bottom.normal, }; ```
example
Using the theme
```ts import { ViewStyle } from 'react-native'; import { Theme } from '@ef-carbon/react-native-style'; const theme = new Theme({ base: 'blue' }); const style: ViewStyle = { ...theme.margin.top.normal, ...theme.margin.left.normal, ...theme.margin.safe.bottom.normal, }; ```
see
MarginSafe
Hierarchy
LengthSides
<
IAll
,
ITop
,
ILeft
,
IRight
,
IBottom
>
Margin
Implements
ILengthSides
<
IAll
,
ITop
,
ILeft
,
IRight
,
IBottom
>
IMargin
Index
Constructors
constructor
Properties
all
bottom
left
right
safe
top
Accessors
huge
large
larger
largest
normal
small
smaller
smallest
tiny
Constructors
constructor
new
Margin
(
__namedParameters
:
object
)
:
Margin
Parameters
__namedParameters:
object
safe
:
ISafe
<
number
>
spacing
:
ILength
<
number
>
Returns
Margin
Properties
all
all
:
Readonly
<
ILength
<
IAll
>
>
bottom
bottom
:
Readonly
<
ILength
<
IBottom
>
>
left
left
:
Readonly
<
ILength
<
ILeft
>
>
right
right
:
Readonly
<
ILength
<
IRight
>
>
safe
safe
:
IMarginSafe
top
top
:
Readonly
<
ILength
<
ITop
>
>
Accessors
huge
get
huge
(
)
:
IAll
Returns
IAll
large
get
large
(
)
:
IAll
Returns
IAll
larger
get
larger
(
)
:
IAll
Returns
IAll
largest
get
largest
(
)
:
IAll
Returns
IAll
normal
get
normal
(
)
:
IAll
Returns
IAll
small
get
small
(
)
:
IAll
Returns
IAll
smaller
get
smaller
(
)
:
IAll
Returns
IAll
smallest
get
smallest
(
)
:
IAll
Returns
IAll
tiny
get
tiny
(
)
:
IAll
Returns
IAll
Globals
"
Margin"
Margin
constructor
all
bottom
left
right
safe
top
huge
large
larger
largest
normal
small
smaller
smallest
tiny
Margin
Safe
IMargin
Options
margin
Convert
Provides mixins that can be used to add margin styles to components
MarginSafe