You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Box component serves as a wrapper component for most layout related needs.
3
+
The Box component serves as a wrapper component for most layout related needs. Use Box to set values such as `display`, `width`, `height`, and more. See the LAYOUT section of our [System Props](/components/docs/system-props) documentation for the full list of available props. In practice, this component is used frequently as a wrapper around other components to achieve Box Model related styling.
4
4
5
5
## Default example
6
6
7
7
```.jsx
8
-
<Box display="inline-block" width="300px" bg="blue.4">This is a Box</Box>
8
+
<Box>
9
+
<Label m={1}>Box can be used to create block level elements & more</Label>
10
+
</Box>
11
+
12
+
<Label m={1}>Default label</Label>
9
13
```
10
14
11
15
## System props
@@ -14,7 +18,9 @@ Box components get the `COMMON` and `LAYOUT` categories of system props. Read ou
14
18
15
19
## Component props
16
20
17
-
Box does not get any additional props other than its system props mentioned above.
21
+
| Prop name | Type | Default | Description |
22
+
| :- | :- | :-: | :- |
23
+
| is | String |`div`| sets the HTML tag for the component|
0 commit comments