English | 中文
Dividers are visual separators of content. It supports two orientations: horizontal
and vertical
.
npm install @rn-components-kit/divider --save
Preview | Code |
---|---|
![]() |
Demo1 Code |
![]() |
Demo2 Code |
Allow you to customize style
Type | Required | Default |
---|---|---|
object | no | - |
Determines the divider's color
Type | Required | Default |
---|---|---|
string | no | '#DFDFDF' |
Determines the divider's orientation
Type | Required | Default |
---|---|---|
enum('horizontal' , 'vertical' ) |
no | 'horizontal' |
Space between two sides on cross axis
Type | Required | Default |
---|---|---|
number | no | 0 |
Space inside two sides on main axis
Type | Required | Default |
---|---|---|
number | no | 0 |