adding support for min/max-width/height

Summary: Adding controls for min/max height/width to the playground

Reviewed By: emilsjolander

Differential Revision: D7988400

fbshipit-source-id: bae487e2504906788552d6c1a29ed74c39cb5ac0
This commit is contained in:
Daniel Büchele
2018-05-14 07:32:54 -07:00
committed by Facebook Github Bot
parent 3564ccf6e4
commit 5dbe3c128b
3 changed files with 74 additions and 5 deletions

View File

@@ -33,7 +33,7 @@ export default (props: Props<*>) => {
type="text"
{...props}
onChange={e => props.onChange(props.property, e.target.value)}
placeholder="undefined"
placeholder={props.placeholder || 'undefined'}
onFocus={e => e.target.select()}
value={Number.isNaN(props.value) ? '' : props.value}
/>