---
title: Sizing
description: JSX style props for sizing an element
---
## Width
Use the `width` or `w` property to set the width of an element.
```jsx
// hardcoded values
// token values
```
### Fractional width
Use can set fractional widths using the `width` or `w` property.
Values can be within the following ranges:
- Thirds: `1/3` to `2/3`
- Fourths: `1/4` to `3/4`
- Fifths: `1/5` to `4/5`
- Sixths: `1/6` to `5/6`
- Twelfths: `1/12` to `11/12`
```jsx
// half width
// thirds
// fourths
// fifths
// sixths
// twelfths
```
### Viewport width
Use the modern viewport width values `dvw`, `svw`, `lvw`.
> `dvw` maps to `100dvw`, `svw` maps to `100svw`, `lvw` maps to `100lvw`.
```jsx
// shorthand
```
| Prop | CSS Property | Token Category |
| ------------ | ------------ | -------------- |
| `w`, `width` | `width` | `sizes` |
## Max width
Use the `maxWidth` or `maxW` property to set the maximum width of an element.
```jsx
// hardcoded values
// shorthand
// token values
// shorthand
```
| Prop | CSS Property | Token Category |
| ------------------ | ------------ | -------------- |
| `maxW`, `maxWidth` | `max-width` | `sizes` |
## Min width
Use the `minWidth` or `minW` property to set the minimum width of an element.
```jsx
// hardcoded values
// shorthand
// token values
// shorthand
```
| Prop | CSS Property | Token Category |
| ------------------ | ------------ | -------------- |
| `w`, `width` | `width` | `sizing` |
| `maxW`, `maxWidth` | `max-width` | `sizing` |
| `minW`, `minWidth` | `min-width` | `sizing` |
## Height
Use the `height` or `h` property to set the height of an element.
```jsx
// hardcoded values
// shorthand
// token values
// shorthand
```
### Fractional height
Use can set fractional heights using the `height` or `h` property.
Values can be within the following ranges:
- Thirds: `1/3` to `2/3`
- Fourths: `1/4` to `3/4`
- Fifths: `1/5` to `4/5`
- Sixths: `1/6` to `5/6`
```jsx
// shorthand
```
### Relative heights
Use the modern relative height values `dvh`, `svh`, `lvh`.
> `dvh` maps to `100dvh`, `svh` maps to `100svh`, `lvh` maps to `100lvh`.
```jsx
// shorthand
```
## Max height
Use the `maxHeight` or `maxH` property to set the maximum height of an element.
```jsx
// hardcoded values
// shorthand
// token values
// shorthand
```
## Min height
Use the `minHeight` or `minH` property to set the minimum height of an element.
```jsx
// hardcoded values
// shorthand
// token values
// shorthand
```
| Prop | CSS Property | Token Category |
| ------------------- | ------------ | -------------- |
| `h`, `height` | `height` | `sizes` |
| `maxH`, `maxHeight` | `max-height` | `sizes` |
| `minH`, `minHeight` | `min-height` | `sizes` |