Skip to content

Loading Spinner

Used as a loading indicator when data is being fetched or when a page is loading.

See all the examples and details in the Storybook.

Usage

tsx
import { LoadingSpinner } from "@samgl/graffiti-ui";

const MyLoadingSpinner = () => {
  return <LoadingSpinner $size="3rem" $ringWidth="0.25rem" $arcColor="#f00" />;
};

Props

PropTypeDefaultOptionalDescription
$sizestringThe size of the loading spinner.
$ringWidthstringThe thickness of the spinner.
$arcColorstringThe colour of the spinning section.
$ringColorstringThe colour of non-spinning section.
classNamestringThe class name of the component, generally used when extending the component with a styled component.