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:
In this Box component, it has bg
, px
and color
props, which control the background color, padding, and text color
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