How to build a Dialog that allows interaction with the background elements? #1330
-
Hello everyone! 👋🏻 I'm building a component that behaves like something between a For what I understand, this doesn't comply with the definition of a toast (subtle, non-interruptive notification to the user), so I think it's a dialog. It may be called a snack bar or a toolbar, but I'm trying to use definitions of components that already exist on Radix. Is there anyway in which the radix Any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I think you are looking for a non-modal dialog, in which case you are looking for |
Beta Was this translation helpful? Give feedback.
I think you are looking for a non-modal dialog, in which case you are looking for
modal={true}
on theRoot
part.And you are correct with
onInteractOutside={(e) => e.preventDefault()}
to prevent closing on outside interactions.