bokuweb / re-resizable

📏 A resizable component for React.
https://bokuweb.github.io/re-resizable/
MIT License
2.44k stars 217 forks source link

allowedDirection as props #707

Open softmarshmallow opened 3 years ago

softmarshmallow commented 3 years ago
         <Resizable
                ref={c => { this.resizable = c; }}
                defaultDirection={{
                     horizontal: true,
                     vertical: false,
                }}
                defaultSize={{
                    width: 375,
                    height: 812,
                }}
                onResize={this.onResize}

            >

like this.

qafoori commented 3 years ago

am interested with this feature. now we should use same number or string in minHeight={number | string} and maxHeight={number | string} to keep the height fixed. but that feature would be amazing!

iamkhalidbashir commented 2 years ago

Needed

fukemy commented 1 month ago

any update on this?