Div
Use the Div component as a layout primitive to add margin, padding, and colors to content.
import { COLORS, Div, Text } from "cherag-ui"'
Usage

    <Div
      bg={COLORS.errorIcon}
      w={200}
      h={100}
      p={10}
      m={10}
      style={{
        justifyContent: "center",
        alignItems: "center",
      }}
    >
      <Text
        fontSize="xl"
        style={{
          color: COLORS.white,
        }}
      >
        Div Commponent
      </Text>
    </Div>
Div Commponent
Div Commponent
Props
Div propertics
Name
Type
Description
children
React.ReactNode
Child elements of Div.
style
StyleProp<ViewStyle>
Style of Div.
bg
string
Background color of Div.
w
number
Width of Div.
h
number
Height of Div.
p
number
Padding of Div.
m
number
Margin of Div.