---
title: width
framework: tvmlkit
role: symbol
role_heading: Instance Property
path: tvmlkit/tvviewelementstyle/width
---

# width

The width, in pixels, for an element.

## Declaration

```swift
var width: CGFloat { get }
```

## See Also

### Defining the Height and Width of an Element

- [height](tvmlkit/tvviewelementstyle/height.md)
- [maxHeight](tvmlkit/tvviewelementstyle/maxheight.md)
- [maxWidth](tvmlkit/tvviewelementstyle/maxwidth.md)
- [minHeight](tvmlkit/tvviewelementstyle/minheight.md)
- [minWidth](tvmlkit/tvviewelementstyle/minwidth.md)
