Nytrox
Nytrox

Reputation: 45

How do I create a window in react?

Is there any component similar to ext.window in react?

I checked bootstrap/material ui and the closest thing to a window are modals, but I would like to find something resizable and draggable.

Upvotes: 1

Views: 1593

Answers (3)

Aldo
Aldo

Reputation: 1287

You can try specific components that do this, like react-rnd.

See the demo, you can both resize and drag the created component.

Here, you have a live example in codesandbox.

Upvotes: 3

Mosè Raguzzini
Mosè Raguzzini

Reputation: 15871

What you need is a draggable modal with React implementation:

Bootstrap draggable modal

https://gist.github.com/burgalon/870a68de68c5ed15c416fab63589d503

Material UI draggable modal

https://codesandbox.io/s/nnq98zlrrl

Upvotes: 0

tomen
tomen

Reputation: 539

I've been using Material-Ui for a while. There's a standard modal and dialog (like a modal but with default template for easier customization)

Isn't modal (dialog) sufficient for the job that you want?

Upvotes: 0

Related Questions