The Loader component provides an infinite spinning animation for indicating loading states.
Usage
import { Loader } from 'components/lib';
function MyComponent({ ...props }){
return (
<div>
<Loader />
</div>
);
}
Props
| Prop | Description | Required | Value |
|---|---|---|---|
| className | custom style | optional | SCSS or Tailwind |
Notes
- The
Loadercomponent uses theIconcomponent from'components/lib'to display a loading icon. - The
classNameprop allows for custom styling to be applied.