Divider
Dividers are visual separators of content.
Use Divider when you want to make a distinction between sections of content.
Our divider offers adding inset, color, orientation and subHeader to the component using props.
Also receives all View props.
#
Usage#
Props#
Divider#
Reference#
Divider#
colorThe color of the component.
Type | Default |
---|---|
string | None |
#
insetApplies inset to the divider.
Type | Default |
---|---|
boolean | false |
#
insetTypeApplies inset to a specific direction to the divider.
Type | Default |
---|---|
"middle" or "left" or "right" | left |
#
orientationApply orientation to the divider.
Type | Default |
---|---|
"vertical" or "horizontal" | horizontal |
#
styleApplies style to the divider.
Type | Default |
---|---|
View style(Object) | None |
#
subHeaderAdds subHeader text to the divider.
Type | Default |
---|---|
string | None |
#
subHeaderStyleAdds style to the subHeader text of the divider
Type | Default |
---|---|
Text Style(Object) | None |
#
widthApply width to the divider.
Type | Default |
---|---|
number | None |