Reviewed By: danielbuechele Differential Revision: D7009457 fbshipit-source-id: d5053751a2bde369a65a740c03ace5bbd2eec02f
29 lines
670 B
Markdown
29 lines
670 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>
|