import React from
'react'
import {
ChakraProvider, Box, Stack,
Text, Divider, AbsoluteCenter
} from
'@chakra-ui/react'
;
const App = () => {
return
(
<>
<ChakraProvider>
<Box p={8}>
<Text as=
"h1"
fontSize=
"3xl"
color=
"green.500"
fontWeight=
"bold"
mb={4}>
GeeksforGeeks
</Text>
<Text as=
"h3"
fontSize=
"xl"
color=
"gray.600"
mb={8}>
Chakra UI Data Display Divider
</Text>
<Stack spacing={2}>
<Text fontSize=
"lg"
fontWeight=
"bold"
color=
"teal"
>
Divider Type: Basic Horizontal
</Text>
<Divider size=
"lg"
borderWidth=
"6px"
borderColor=
"teal"
/>
</Stack>
<Stack direction=
'row'
align=
'center'
mt={8} spacing={8}>
<Text fontSize=
"lg"
fontWeight=
"bold"
color=
"purple"
>
Divider Type: Vertical
with
Text
</Text>
<Divider orientation=
'vertical'
size=
"lg"
borderWidth=
"6px"
borderColor=
"pink"
/>
<Text fontSize=
"lg"
fontWeight=
"bold"
color=
"orange"
>
Section 2
</Text>
</Stack>
<Stack direction=
'column'
mt={8} spacing={8}>
<Text fontSize=
"lg"
fontWeight=
"bold"
color=
"cyan"
>
Divider Type: Custom Colored and Sized (XL)
</Text>
<Divider size=
'xl'
borderWidth=
"6px"
borderColor=
'cyan'
/>
<Text fontSize=
"lg"
fontWeight=
"bold"
color=
"red"
>
Divider Type: Custom Colored and Sized (LG)
</Text>
<Divider size=
'lg'
borderWidth=
"6px"
borderColor=
'red'
/>
<Text fontSize=
"lg"
fontWeight=
"bold"
color=
"green"
>
Divider Type: Custom Colored and Sized (MD)
</Text>
<Divider size=
'md'
borderWidth=
"6px"
borderColor=
'green'
/>
</Stack>
<Box position=
'relative'
padding=
'10'
mt={8}>
<Stack spacing={2}>
<Divider size=
"lg"
borderWidth=
"6px"
borderColor=
"blue"
/>
<AbsoluteCenter bg=
'white'
px=
'4'
>
GeeksforGeeks is Great
</AbsoluteCenter>
</Stack>
</Box>
<Stack direction=
'row'
h=
'100px'
p={8} mt={8}>
<Text fontSize=
"lg"
fontWeight=
"bold"
color=
"purple"
>
Divider Type: Composition
with
Stack
</Text>
<Divider orientation=
'vertical'
size=
"xl"
borderWidth=
"6px"
borderColor=
"purple"
/>
<Text fontSize=
"2xl"
fontWeight=
"bold"
color=
"purple"
>
Chakra UI
</Text>
</Stack>
<Stack direction=
'column'
mt={8} spacing={8}>
<Text fontSize=
"lg"
fontWeight=
"bold"
color=
"yellow"
>
Divider Type: Dashed Variant (LG)
</Text>
<Divider variant=
'dashed'
size=
"lg"
borderWidth=
"6px"
borderColor=
"yellow"
/>
<Text fontSize=
"lg"
fontWeight=
"bold"
color=
"purple"
>
Divider Type: Dashed Variant (MD)
</Text>
<Divider variant=
'dashed'
size=
"md"
borderWidth=
"6px"
borderColor=
'purple'
/>
</Stack>
</Box>
</ChakraProvider>
</>
)
}
export
default
App;