Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IBorderOptions

The options for the Border class. Can be used to customise the radius and width.

example
Overriding with classes ```ts import { Border, BorderRadius, BorderWidth } from '@ef-carbon/react-native-style'; const radius = new BorderRadius(); const width = new BorderWidth(); const animation = new Animation({ radius, width }); ```
example
Overriding with same base/scale ```ts import { Border } from '@ef-carbon/react-native-style'; const animation = new Animation({ base: 2, scale: 2, }); ```
example
Overriding with individual base/scale ```ts import { Border } from '@ef-carbon/react-native-style'; const animation = new Animation({ base: { width: 1, radius: 16, }, scale: { width: 1.5, radius: 2, }, }); ```
see

BorderRadius

see

BorderWidth

Hierarchy

  • object
    • IBorderOptions

Index

Properties

Properties

Optional base

base: number | Partial<BorderMapped<IBorder, number>>

Optional scale

scale: number | Partial<BorderMapped<IBorder, number>>