--- title: Layout description: JSX style props to control the width, height, and spacing of elements --- ## Aspect Ratio Use the `aspectRatio` prop to set the desired aspect ratio of an element. ```jsx // raw value // token ``` | Prop | CSS Property | Token Category | | ------------- | -------------- | -------------- | | `aspectRatio` | `aspect-ratio` | `aspectRatios` | ## Break ### Break After Use the `breakAfter` prop to set how page, column, or region breaks should behave after an element. ```jsx Item 1 Item 2 ``` | Prop | CSS Property | Token Category | | ------------ | ------------- | -------------- | | `breakAfter` | `break-after` | - | ### Break Before Use the `breakBefore` prop to set how page, column, or region breaks should behave before an element. ```jsx Item 1 Item 2 ``` | Prop | CSS Property | Token Category | | ------------- | -------------- | -------------- | | `breakBefore` | `break-before` | - | ### Break Inside Use the `breakInside` prop to set how page, column, or region breaks should behave inside an element. ```jsx Item 1 Item 2 ``` | Prop | CSS Property | Token Category | | ------------- | -------------- | -------------- | | `breakInside` | `break-inside` | - | ## Box Decoration Break Use the `boxDecorationBreak` prop to set how box decorations should behave when the box breaks across multiple lines, columns, or pages. ```jsx /boxDecorationBreak/ Chakra is
great!
``` | Prop | CSS Property | Token Category | | -------------------- | ---------------------- | -------------- | | `boxDecorationBreak` | `box-decoration-break` | - | ## Box Sizing Use the `boxSizing` prop to set the box sizing of an element. ```jsx /boxSizing/ ``` | Prop | CSS Property | Token Category | | ----------- | ------------ | -------------- | | `boxSizing` | `box-sizing` | - | ## Columns Use the `columns` prop to set the number of columns for an element. ```jsx ``` | Prop | CSS Property | Token Category | | --------- | ------------ | -------------- | | `columns` | `columns` | - | ## Float Use the `float` prop to set the float of an element. ```jsx /float/ As much mud in the streets... Float me ``` | Prop | CSS Property | Token Category | | ------- | ------------ | -------------- | | `float` | `float` | - | ## Clear Use the `clear` prop to set whether an element must be moved below (cleared) floating elements that precede it. ```jsx Left Right As much mud in the streets as if the waters had but newly retired from the face of the earth, and it would not be wonderful to meet a Megalosaurus, forty feet long or so, waddling like an elephantine lizard up Holborn Hill. ``` | Prop | CSS Property | Token Category | | ------- | ------------ | -------------- | | `clear` | `clear` | - | ## Isolation Use the `isolation` prop to set whether an element should explicitly create a new stacking context. ```jsx ``` | Prop | CSS Property | Token Category | | ----------- | ------------ | -------------- | | `isolation` | `isolation` | - | ## Object Fit Use the `objectFit` prop to set how an image or video should be resized to fit its container. ```jsx ``` | Prop | CSS Property | Token Category | | ----------- | ------------ | -------------- | | `objectFit` | `object-fit` | - | ## Object Position Use the `objectPosition` prop to set how an element should be positioned within its container. ```jsx ``` | Prop | CSS Property | Token Category | | ---------------- | ----------------- | -------------- | | `objectPosition` | `object-position` | - | ## Overflow Use the `overflow` prop to control how content that exceeds an element's dimensions is handled. This property determines whether to clip the content, add scrollbars, or display the overflow content. ```jsx ``` | Prop | CSS Property | Token Category | | ---------- | ------------ | -------------- | | `overflow` | `overflow` | - | ## Overscroll Behavior Use the `overscrollBehavior` prop to control what the browser does when reaching the boundary of a scrolling area. ```jsx ``` | Prop | CSS Property | Token Category | | -------------------- | --------------------- | -------------- | | `overscrollBehavior` | `overscroll-behavior` | - | ## Position Use the `position` utilities to set the position of an element. ```jsx // shorthand ``` | Prop | CSS Property | Token Category | | ---------- | ------------ | -------------- | | `position` | `position` | - | ## Top / Right / Bottom / Left Use the `top`, `right`, `bottom` and `left` utilities to set the position of an element. ```jsx // using spacing tokens // using hardcoded values ``` Use the logical equivalents of `inset{Start|End}` utilities to set the position of an element based on the writing mode. ```jsx ``` | Prop | CSS Property | Token Category | | ----------------------------------------- | -------------------- | -------------- | | `top` | `top` | `spacing` | | `right` | `right` | `spacing` | | `bottom` | `bottom` | `spacing` | | `left` | `left` | `spacing` | | `start`, `insetStart`, `insetInlineStart` | `inset-inline-start` | `spacing` | | `end` , `insetEnd`, `insetInlineEnd` | `inset-inline-end` | `spacing` | | `insetX`, `insetInline` | `inset-inline` | `spacing` | | `insetY`, `insetBlock` | `inset-inline` | `spacing` | ## Visibility Use the `visibility` prop to control the visibility of an element. ```jsx ``` | Prop | CSS Property | Token Category | | ------------ | ------------ | -------------- | | `visibility` | `visibility` | - | ## Z-Index Use the `zIndex` prop to set the z-index of an element. ```jsx // using hardcoded values // using token ``` | Prop | CSS Property | Token Category | | -------- | ------------ | -------------- | | `zIndex` | `z-index` | `zIndices` |