Skip to content

Overlay

Block user for interacting when loading is in progress.

Usage

Simple Usage

preview

Try it:

ts
import { showOverlay, hideOverlay } from '@privyid/persona/core'

function onClick () {
  showOverlay()

  setTimeout(() => {
    hideOverlay()
  }, 3000)
}

API

showOverlay

showOverlay(): Promise<void>

OptionsTypeDefaultDescription
There no options here

hideOverlay

hideOverlay(): Promise<void>

OptionsTypeDefaultDescription
There no options here

See Also

Released under the MIT License.