Files
yoga/website/contents/properties/min-max.md
Emil Sjölander b21dd9891a Final tweaks
Reviewed By: danielbuechele

Differential Revision: D7009456

fbshipit-source-id: 65304f648141407bc15484840647050e712e89df
2018-02-16 07:22:05 -08:00

29 lines
672 B
Markdown

---
path: "docs/min-max"
title: "Max / Min Width and Height"
hasPlayground: true
---
## Max / Min Width and Height
All the following properties set the maximum and minimum size constraints of an element.
These properties have higher priority than all other properties and will always be respected.
Constraints can be specified as either absolute pixel values or as percentages of their
parent's size. By default all these constraints are `undefined`.
### Max Width
<controls prop="maxWidth"></controls>
### Min Width
<controls prop="minWidth"></controls>
### Max Height
<controls prop="maxHeight"></controls>
### Min Width
<controls prop="minHeight"></controls>