Box
Box is the most abstract component on top of which all other Chakra UI components are built. It renders the div element by default.
Here's an example of how to customize the navigation bar:
<Box bg="blue.500" px="4" color="white">
... ...In this Box component, it has bg, pxand color props, which control the background color, padding, and text color
<Box bg="red.500" px="4" color="black">
... ...After changing blue.500 to red.500, you will notice the navigation color has changed. The same is true for color .
For more information and properties, check https://chakra-ui.com/docs/layout/box
Last updated