Skip to main content

PortkeyLoading

Used for the loading status of pages and blocks.

Usage

import { PortkeyLoading } from '@portkey/did-ui-react';
import React from 'react';

const App: React.FC = () => <PortkeyLoading loading={true} />;
export default App;

API

PropertyDescriptionTypeDefaultVersion
loadingControls if the loading status is displayedboolean | OpacityTypefalse
loadingTextPrompt for loadingstring'Loading...'
classNameClass name of the top level containerstring-
cancelableIs the close button displayed during loadingboolean-
onCancelCallback for the close button displayed during loading() => void-