Skip to content
A page overlay that displays information and blocks interaction with the page until an action is taken or the modal is dismissed.

First, import the component.

import {Modal} from '@pleo-io/telescope'

Then use it, like so.

PropTypeDefault
allowPinchZoom
boolean
aria-label
string
aria-labelledby
string
dangerouslyBypassFocusLock
boolean
dangerouslyBypassScrollLock
boolean
dangerouslySetZIndexValue
number
initialFocusRef
React.RefObject<any>
isOpen
boolean
true
onDismiss
function
size
string
Information:

Supports styled-system's spacing utility.

PropTypeDefault
onClick*
function
skeleton
boolean
false
Information:

Also accepts HTML Button props (except aria-label as this is supplied by the component).

This component doesn't accept any custom props.
This component doesn't accept any custom props.
This component doesn't accept any custom props.
This component doesn't accept any custom props.
This component doesn't accept any custom props.
This component doesn't accept any custom props.