Next.js Discord

Discord Forum

Blur outside React component(?)

Unanswered
Rex posted this in #help-forum
Open in Discord
RexOP
Let's say I have a modal to edit an object, and while it's open I want it to be visible and on the outside blurred, anyone knows how to do it?

1 Reply

@Rex ok so what I do is this

1) Make a fixed div of height 100svh and width 100%

2) Give it a black background and a background opacity of 50%

3) Add another div and have it be inside the parent div..thwts your content div.