Interface: RsModalProps
Props for the RsModal component.
Extends
ModalProps
Properties
animation?
optionalanimation:ElementType<any, keyof IntrinsicElements>
Set an animation effect for Modal, the default is Bounce.
Inherited from
ModalProps.animation
animationProps?
optionalanimationProps:any
Animation-related properties
Inherited from
ModalProps.animationProps
animationTimeout?
optionalanimationTimeout:number
Set the duration of the animation
Inherited from
ModalProps.animationTimeout
aria-describedby?
optionalaria-describedby:string
Identifies the element (or elements) that describes the object.
See
aria-labelledby
Inherited from
ModalProps.aria-describedby
aria-labelledby?
optionalaria-labelledby:string
Identifies the element (or elements) that labels the current element.
See
aria-describedby.
Inherited from
ModalProps.aria-labelledby
as?
optionalas:ElementType<any, keyof IntrinsicElements>
You can use a custom element for this component
Inherited from
ModalProps.as
autoFocus?
optionalautoFocus:boolean
When set to true, the Modal is opened and is automatically focused on its own, accessible to screen readers
Inherited from
ModalProps.autoFocus
backdrop?
optionalbackdrop:boolean|"static"
When set to true, the Modal will display the background when it is opened. Clicking on the background will close the Modal. If you do not want to close the Modal, set it to 'static'.
Inherited from
ModalProps.backdrop
backdropClassName?
optionalbackdropClassName:string
Add an optional extra class name to .modal-backdrop It could end up looking like class="modal-backdrop foo-modal-backdrop in"
Inherited from
ModalProps.backdropClassName
backdropStyle?
optionalbackdropStyle:CSSProperties
CSS style applied to backdrop DOM nodes
Inherited from
ModalProps.backdropStyle
backdropTransitionTimeout?
optionalbackdropTransitionTimeout:number
Inherited from
ModalProps.backdropTransitionTimeout
children?
optionalchildren:ReactNode
Primary content
Inherited from
ModalProps.children
className?
optionalclassName:string
Additional classes
Inherited from
ModalProps.className
classPrefix?
optionalclassPrefix:string
The prefix of the component CSS class
Inherited from
ModalProps.classPrefix
closeButton?
optionalcloseButton:ReactNode
Custom close button, used when rendered as a Drawer
Inherited from
ModalProps.closeButton
container?
optionalcontainer:HTMLElement| () =>HTMLElement
Inherited from
ModalProps.container
containerClassName?
optionalcontainerClassName:string
Inherited from
ModalProps.containerClassName
dialogAs?
optionaldialogAs:ElementType<any, keyof IntrinsicElements>
You can use a custom element type for Dialog
Inherited from
ModalProps.dialogAs
dialogClassName?
optionaldialogClassName:string
CSS class applied to Dialog DOM nodes
Inherited from
ModalProps.dialogClassName
dialogStyle?
optionaldialogStyle:CSSProperties
CSS style applied to dialog DOM nodes
Inherited from
ModalProps.dialogStyle
dialogTransitionTimeout?
optionaldialogTransitionTimeout:number
Inherited from
ModalProps.dialogTransitionTimeout
enforceFocus?
optionalenforceFocus:boolean
When set to true, Modal will prevent the focus from leaving when opened, making it easier for the secondary screen reader to access
Inherited from
ModalProps.enforceFocus
full?
optionalfull:boolean
Full screen
Deprecated
Use size="full" instead.
Inherited from
ModalProps.full
handleClose()?
optionalhandleClose: () =>void
Custom close handler function.
Returns
void
id?
optionalid:string
Inherited from
ModalProps.id
isDrawer?
optionalisDrawer:boolean
Indicates if the component should be displayed as a drawer
Inherited from
ModalProps.isDrawer
keyboard?
optionalkeyboard:boolean
Close Modal when esc key is pressed
Inherited from
ModalProps.keyboard
onBackdropClick?
optionalonBackdropClick:MouseEventHandler<Element>
Inherited from
ModalProps.onBackdropClick
onClose()?
optionalonClose: (event) =>void
Called when Modal is closed
Parameters
event
SyntheticEvent
Returns
void
Inherited from
ModalProps.onClose
onEnter()?
optionalonEnter: (node) =>void
Callback fired before the Modal transitions in
Parameters
node
HTMLElement
Returns
void
Inherited from
ModalProps.onEnter
onEntered()?
optionalonEntered: (node) =>void
Callback fired after the Modal finishes transitioning in
Parameters
node
HTMLElement
Returns
void
Inherited from
ModalProps.onEntered
onEntering()?
optionalonEntering: (node) =>void
Callback fired as the Modal begins to transition in
Parameters
node
HTMLElement
Returns
void
Inherited from
ModalProps.onEntering
onEsc?
optionalonEsc:KeyboardEventHandler<Element>
Inherited from
ModalProps.onEsc
onExit()?
optionalonExit: (node) =>void
Callback fired right before the Modal transitions out
Parameters
node
HTMLElement
Returns
void
Inherited from
ModalProps.onExit
onExited()?
optionalonExited: (node) =>void
Callback fired after the Modal finishes transitioning out
Parameters
node
HTMLElement
Returns
void
Inherited from
ModalProps.onExited
onExiting()?
optionalonExiting: (node) =>void
Callback fired as the Modal begins to transition out
Parameters
node
HTMLElement
Returns
void
Inherited from
ModalProps.onExiting
onOpen()?
optionalonOpen: () =>void
Called when Modal is displayed
Returns
void
Inherited from
ModalProps.onOpen
open?
optionalopen:boolean
Open modal
Inherited from
ModalProps.open
overflow?
optionaloverflow:boolean
Automatically sets the height when the body content is too long.
Inherited from
ModalProps.overflow
role?
optionalrole:AriaRole
Inherited from
ModalProps.role
size?
optionalsize:ModalSize
A modal can have different sizes
Inherited from
ModalProps.size
style?
optionalstyle:CSSProperties
Additional style
Inherited from
ModalProps.style
transition?
optionaltransition:ElementType<any, keyof IntrinsicElements>
Inherited from
ModalProps.transition