Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit d9a8120

Browse files
committed
Merge branch 'alpha' of github.com:supabase/ui into alpha
2 parents fe7b979 + 5be5928 commit d9a8120

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/Modal/Modal.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import { Transition } from '@headlessui/react'
1010
import styleHandler from '../../lib/theme/styleHandler'
1111

1212
// import { Transition } from '@tailwindui/react'
13+
// Merge Radix Props to surface in the modal component
14+
export type ModalProps = RadixProps & Props
1315

1416
interface RadixProps
1517
extends Dialog.DialogProps,
@@ -80,7 +82,8 @@ const Modal = ({
8082
overlayClassName,
8183
triggerElement,
8284
header,
83-
}: Props) => {
85+
...props
86+
}: ModalProps) => {
8487
const [open, setOpen] = React.useState(visible ? visible : false)
8588

8689
const __styles = styleHandler('modal')
@@ -159,6 +162,7 @@ const Modal = ({
159162
<Dialog.Overlay className={__styles.scroll_overlay}>
160163
<Dialog.Content
161164
className={[__styles.base, __styles.size[size]].join(' ')}
165+
onInteractOutside={props.onInteractOutside}
162166
>
163167
{header && <div className={__styles.header}>{header}</div>}
164168
{/* <div

0 commit comments

Comments
 (0)