Skip to main content
Version: 4.0.0-rc.7

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

Import

import { Divider } from '@rneui/themed';

Theme Key

Divider

Props

note

Includes all View props.

NameTypeDefaultDescription
colorstringThe color of the component.
insetbooleanfalseApplies inset to the divider.
insetTypemiddle | left | rightleftApplies inset to a specific direction to the divider.
orientationvertical | horizontalhorizontalApply orientation to the divider.
styleView StyleApplies style to the divider.
subHeaderstringAdds subHeader text to the divider.
subHeaderStyleText StyleAdds style to the subHeader text of the divider
widthnumberApply width to the divider.

Playground

Loading...