import React from 'react'; import { View, Text, StyleSheet, ScrollView } from 'react-native'; import { useUx4gTheme } from '../theme/Ux4gThemeContext'; import { UX4GColors } from '../foundation/colors'; import { Ux4gDivider } from '../components/divider/Divider'; export const DividerShowcase: React.FC = () => { const theme = useUx4gTheme(); return ( Ux4gDivider (`Ux4gDividerProps`) Complete port of Flutter `divider.dart` supporting orientation, style, thickness, indents & labels. {/* 1. Basic Horizontal Styles */} 1. Line Styles (`solid`, `dashed`, `dotted`) Solid (Default, thickness=1.0) Dashed (`style="dashed"`, thickness=2.0) Dotted (`style="dotted"`, thickness=2.5) {/* 2. Indented Dividers */} 2. Indentations (`startIndent` & `endIndent`) Leading Indent (`startIndent={32}`) Trailing Indent (`endIndent={32}`) Symmetrical Indent (`startIndent={24}`, `endIndent={24}`) {/* 3. Labeled Dividers */} 3. Centered Labels (`label` & `labelSpacing`) {/* 4. Vertical Dividers */} 4. Vertical Orientation (`orientation="vertical"`) Solid Dashed Dotted Labeled ); }; const styles = StyleSheet.create({ container: { flex: 1, }, contentContainer: { padding: 20, paddingBottom: 60, }, header: { marginBottom: 24, paddingBottom: 16, borderBottomWidth: 1, }, title: { fontSize: 24, fontWeight: '700', }, subtitle: { fontSize: 14, marginTop: 4, }, section: { marginBottom: 28, }, sectionTitle: { fontSize: 18, fontWeight: '600', marginBottom: 12, }, card: { padding: 16, borderRadius: 12, borderWidth: 1, }, label: { fontSize: 13, fontWeight: '500', marginBottom: 8, }, subLabel: { fontSize: 12, fontWeight: '500', marginBottom: 8, }, verticalCol: { alignItems: 'center', height: '100%', }, });