(
style={{
...overlayStyle,
}}
- onClick={handleOverlayClick}
{...otherOverlayOptions}
- />
-
-
- {withoutCloseButton ? null : (
-
-
-
-
-
- )}
- {title ? (
-
- {title}
-
- ) : (
- // Refer: https://www.radix-ui.com/primitives/docs/components/dialog#title
- // If you want to hide the title, wrap it inside our Visually Hidden utility like this .
-
-
-
- )}
- {description ? (
-
- {description}
-
- ) : null}
+
+ {withoutCloseButton ? null : (
+
+
+
+
+
+ )}
+ {title ? (
+
+ {title}
+
+ ) : (
+ // Refer: https://www.radix-ui.com/primitives/docs/components/dialog#title
+ // If you want to hide the title, wrap it inside our Visually Hidden utility like this .
+
+
+
+ )}
+ {description ? (
+
+ {description}
+
+ ) : null}
- {children}
-
-
+ {children}
+
+
+
);