Farzin-Firoozi/react-modern-drawer

Size can be string

Closed this issue · 5 comments

Size type declared as number but it can be string too. For example, it can be one of those px, vh, vw etc.

image

If you want to do that you can pass width to the style prop and it overwrites the size.

<Drawer style={{ width: '50vw' }} >
...

take a look at this.

That's how I already did it but I just wanted to improve the code.

Can you make a PR for it?

Need access to create a branch

This feature is available now in v1.1.0! 🥳