@mapbox/react-minimum-duration-loader

Displays a loading indicator for a minimum amount of time to avoid abrupt changes in the UI.

Usage no npm install needed!

<script type="module">
  import mapboxReactMinimumDurationLoader from 'https://cdn.skypack.dev/@mapbox/react-minimum-duration-loader';
</script>

README

@mapbox/react-minimum-duration-loader

Displays a loading indicator for a minimum amount of time to avoid abrupt, potentially distracting UI updates.

Installation

npm install @mapbox/react-minimum-duration-loader

API/Props

Please check the source file.