Package Exports
- @agney/react-loading
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@agney/react-loading) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
React Loading
Installation
npm i @agney/react-loadingUsage
import { useLoading, Audio } from '@agney/react-loading';
function Content() {
const { containerProps, indicatorEl } = useLoading({
loading: true,
indicator: <Audio width="50" />
});
return (
<section {...containerProps}> {/* Accessibility props injected to container */}
{indicatorEl} {/* renders only while loading */}
</section>
);
}