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
"Padding"
Padding
Class Padding
Provides mixins that can be used to add padding styles to components
example
Using the mixins
```ts import { ViewStyle } from 'react-native'; import { padding } from '@ef-carbon/react-native-style'; const style: ViewStyle = { ...padding.top.normal, ...padding.left.normal, ...padding.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.padding.top.normal, ...theme.padding.left.normal, ...theme.padding.safe.bottom.normal, }; ```
see
PaddingSafe
Hierarchy
LengthSides
<
IAll
,
ITop
,
ILeft
,
IRight
,
IBottom
>
Padding
Implements
ILengthSides
<
IAll
,
ITop
,
ILeft
,
IRight
,
IBottom
>
IPadding
Index
Constructors
constructor
Properties
all
bottom
left
right
safe
top
Accessors
huge
large
larger
largest
normal
small
smaller
smallest
tiny
Constructors
constructor
new
Padding
(
__namedParameters
:
object
)
:
Padding
Parameters
__namedParameters:
object
safe
:
ISafe
<
number
>
spacing
:
ILength
<
number
>
Returns
Padding
Properties
all
all
:
Readonly
<
ILength
<
IAll
>
>
bottom
bottom
:
Readonly
<
ILength
<
IBottom
>
>
left
left
:
Readonly
<
ILength
<
ILeft
>
>
right
right
:
Readonly
<
ILength
<
IRight
>
>
safe
safe
:
IPaddingSafe
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
"
Padding"
Padding
constructor
all
bottom
left
right
safe
top
huge
large
larger
largest
normal
small
smaller
smallest
tiny
Padding
Safe
IPadding
Options
padding
Convert
Provides mixins that can be used to add padding styles to components
PaddingSafe