Divider

The Divider UI Component is used to separate different content areas, clearly delineating the boundaries between each theme section.

Preview

Divider.jpg

Code example

render('Checkout::Dynamic::Render', (root) => {
const dividerSizes: DividerSize[] = ['small', 'base', 'large', 'extraLarge'];
return (
<View>
{dividerSizes.map((size) => {
return (
<View key={size}>
<Text>{`Divider size: ${size}`}</Text>
<Divider size={size}></Divider>
</View>
);
})}
</View>
);
});

DividerProps

tip

Optional properties are marked with a ?. Properties without a ? are required.

size?

base small large extraLarge Default: small

The width of the divider.


direction?

block inline Default: inline
The direction of the divider.
  • block: The divider is vertical.
  • inline: The divider is horizontal.

alignment?

start center end default: center

The alignment method.


id?

string

A unique identifier for the UI component. If this property is not set, the system will automatically generate a globally unique ID for this component.


Was this article helpful to you?