allowPinchZoom
Description
Handle zoom or pinch gestures on iOS devices when scroll locking is enabled.
Type
booleanDefault
false.Leave Yamada UI a star
StarDialog is a component used to confirm or interrupt user actions.
Description
Handle zoom or pinch gestures on iOS devices when scroll locking is enabled.
Type
booleanDefault
false.Description
The animation of the tooltip.
Type
"bottom" | "left" | "right" | "scale" | "top" | "none"Default
'scale'Description
The HTML element to render.
Type
keyof IntrinsicElementsDescription
If true, scrolling will be disabled on the body when the modal opens.
Type
booleanDefault
trueDescription
The dialog cancel to use.
Type
type ONLY_FOR_FORMAT =
| string
| number
| boolean
| ReactElement<any, string | JSXElementConstructor<any>>
| Iterable<ReactNode>
| ReactPortal
| ButtonPropsDescription
If true, the modal will close when the Esc key is pressed.
Type
booleanDefault
trueDescription
If true, the modal will close when the overlay is clicked.
Type
booleanDefault
trueDescription
The visual color appearance of the component.
Type
"blackAlpha" | "whiteAlpha" | "amber" | "blue" | "info" | "link" | "primary" | "cyan" | "emerald" | "flashy" | "fuchsia" | "gray" | "green" | "success" | "indigo" | "lime" | "neutral" | "orange" | "warning" | "pink" | "purple" | "red" | "danger" | "rose" | "sky" | "teal" | "violet" | "secondary" | "yellow"Description
Props for modal container element.
Type
HTMLUIPropsDescription
The animation duration.
Type
number | MotionLifecycleProps<number>Description
ref of the element to return focus to when FocusLock unmounts.
Type
RefObject<FocusableElement>Description
The dialog footer to use.
Type
type ONLY_FOR_FORMAT =
| string
| number
| boolean
| ReactElement<any, string | JSXElementConstructor<any>>
| Iterable<ReactNode>
| ReactPortalDescription
The dialog header to use.
Type
type ONLY_FOR_FORMAT =
| string
| number
| boolean
| ReactElement<any, string | JSXElementConstructor<any>>
| Iterable<ReactNode>
| ReactPortalDescription
ref of the element to receive focus initially.
Type
RefObject<FocusableElement>Description
If true, the open will be opened.
Deprecated
Use open instead.
Type
booleanDescription
Enables aggressive focus capturing within iframes.
- If true: keep focus in the lock, no matter where lock is active.
- If false: allows focus to move outside of iframe.
Type
booleanDefault
falseDescription
The callback invoked when cancel button clicked.
Type
(onClose: (() => void) | undefined) => voidDescription
Callback invoked to close the modal.
Type
() => voidDescription
Callback function to run side effects after the modal has closed.
Type
() => voidDescription
Callback fired when the escape key is pressed and focus is within modal.
Type
() => voidDescription
The callback invoked when other button clicked.
Type
(onClose: (() => void) | undefined) => voidDescription
Callback fired when the overlay is clicked.
Type
() => voidDescription
The callback invoked when success button clicked.
Type
(onClose: (() => void) | undefined) => voidDescription
If true, the open will be opened.
Type
booleanDescription
The dialog other to use.
Type
type ONLY_FOR_FORMAT =
| string
| number
| boolean
| ReactElement<any, string | JSXElementConstructor<any>>
| Iterable<ReactNode>
| ReactPortal
| ButtonPropsDescription
The CSS padding property.
Type
UIValue<number | "px" | "initial" | "inherit" | "-moz-initial" | "revert" | "revert-layer" | "unset" | (string & {}) | "2xl" | "lg" | "md" | "sm" | "xl" | ({} & string) | "-0.5" | "-1" | ... 99 more ... | "xs">Description
The placement of the modal.
Type
UIValue<| "bottom"
| "left"
| "right"
| "top"
| "center"
| "bottom-left"
| "bottom-right"
| "top-left"
| "top-right">Default
'center'Description
Props to be forwarded to the portal component.
Type
Omit<PortalProps, "children">Description
If true, focus will be restored to the element that triggered the FocusLock once it unmounts.
Type
booleanDefault
falseDescription
Where scroll behavior should originate.
- inside: scroll only occurs within the ModalBody.
- outside: the entire ModalContent will scroll within the viewport.
Type
"outside" | "inside"Default
'inside'Description
The size of the Dialog.
Type
"xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "full"Default
"md"Description
The dialog success to use.
Type
type ONLY_FOR_FORMAT =
| string
| number
| boolean
| ReactElement<any, string | JSXElementConstructor<any>>
| Iterable<ReactNode>
| ReactPortal
| ButtonPropsDescription
The variant of the Dialog.
Type
stringDescription
If true, display the modal close button.
Type
booleanDefault
trueDescription
If true, display the modal overlay.
Type
booleanDefault
trueDescription
The HTML element to render.
Type
keyof IntrinsicElementsDescription
If true, disable ripple effects when pressing a element.
Type
booleanDefault
falseDescription
If true, the button is full rounded.
Type
booleanDefault
falseDescription
If true, the button is disabled.
Deprecated
Use disabled instead.
Type
booleanDefault
falseDescription
If true, the button is full rounded.
Deprecated
Use fullRounded instead.
Type
booleanDefault
falseEdit this page on GitHub