Skip to main content
Version: Next

Divider

The Divider is a thin, lightweight separator that groups content in lists and page layouts.

Import

import { Divider } from '@tra-tech/react-native-kitra';

Usage

import { Divider } from '@tra-tech/react-native-kitra';
import { View } from 'react-native';

const App = () => (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center', rowGap: 50 }}>
<Divider borderStyle="dashed" color="red" width={350} />
<Divider borderStyle="dotted" color="purple" width={300} />
<Divider borderStyle="solid" color="green" width={200} />
</View>
);

export default App;

Props

Prop nameTypeRequiredDescription
borderStyle'solid' | 'dotted' | 'dashed' NoAdditional styles to apply to the divider border style. Default value: 'solid'
widthnumberNoWidth of divider. Default value: '100%'
colorstringNoColor of divider.
styleStyleProp<ViewStyle>NoAdditional styles to apply to the divider.
themeUITheme NoThe UI theme to use for the component.