Skip to content
Gravity Logo / Docs Gravity home
Browse documentation
Documentation/Gravity Web

Loader

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

PropDescriptionRequiredValue
classNamecustom styleoptionalSCSS or Tailwind

Notes

  • The Loader component uses the Icon component from 'components/lib' to display a loading icon.
  • The className prop allows for custom styling to be applied.