---
id: contexts-width
title: Width
---
```
this.context.width // number

Component.contextTypes = context.subscribe(['width'])
```
Sets a resize listener and returns the width of the viewport. 
