uiv2.3

ui module

Native UI controls: toasts, dialogs, bottom sheets.

Available Methods

sdk.ui.showToast()
sdk.ui.showDialog()
sdk.ui.showBottomSheet()

Example Usage

import { usePoremi } from '@poremi/react-sdk';

function UiExample() {
  const { sdk } = usePoremi();

  const showSuccess = async () => {
    await sdk.ui.showToast({ message: 'Level complete!', type: 'success' });
  };
}

Try in Playground

🔒 Log in to open this example in the interactive playground.