Ionic Loading Overlay Component (components/IonLoading.tsx)

ionic-framework · packages/react/src/components/IonLoading.tsx · typescript · MIT
ui, fw:react, fw:ionic

An inline loading indicator overlay component for Ionic framework applications. Reuse to display a blocking spinner or loading message.

// Source: https://github.com/ionic-team/ionic-framework | License: MIT | Copyright 2015-present Drifty Co
// Provided via justclaw.it.com; keep this notice with the code.
import type { JSX } from '@ionic/core/components';
import { defineCustomElement } from '@ionic/core/components/ion-loading.js';

import { createInlineOverlayComponent } from './createInlineOverlayComponent';

export const IonLoading = /*@__PURE__*/ createInlineOverlayComponent<JSX.IonLoading, HTMLIonLoadingElement>(
  'ion-loading',
  defineCustomElement
);

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key