@pikas-ui/loader

This package contains a loader components that can be used to show a loading state.

This library is based on React Spinners

Change Log

Requirements

To use this package, you must install the @pikas-ui/styles package.

Installation

You can install this package using npm, yarn, or pnpm.

npm install @pikas-ui/loader
yarn add @pikas-ui/loader
pnpm add @pikas-ui/loader

Usage

BarLoader

import { BarLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <BarLoader />

Props

PropDescriptionTypeDefault
heightHeight of the loadernumber4
widthWidth of the loadernumber100
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

BeatLoader

import { BeatLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <BeatLoader />

Props

PropDescriptionTypeDefault
sizeSize of the loadernumber15
marginMargin of the loadernumber2
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

BounceLoader

import { BounceLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <BounceLoader />

Props

PropDescriptionTypeDefault
sizeSize of the loadernumber60
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

CircleLoader

import { CircleLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <CircleLoader />

Props

PropDescriptionTypeDefault
sizeSize of the loadernumber50
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

ClimbingBoxLoader

import { ClimbingBoxLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <ClimbingBoxLoader />

Props

PropDescriptionTypeDefault
sizeSize of the loadernumber15
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

ClipLoader

import { ClipLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <ClipLoader />

Props

PropDescriptionTypeDefault
sizeSize of the loadernumber35
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

ClockLoader

import { ClockLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <ClockLoader />

Props

PropDescriptionTypeDefault
sizeSize of the loadernumber50
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

DotLoader

import { DotLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <DotLoader />

Props

PropDescriptionTypeDefault
sizeSize of the loadernumber60
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

FadeLoader

import { FadeLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <FadeLoader />

Props

PropDescriptionTypeDefault
heightHeight of the loadernumber15
widthWidth of the loadernumber5
radiusRadius of the loadernumber2
marginMargin of the loadernumber2
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

GridLoader

import { GridLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <GridLoader />

Props

PropDescriptionTypeDefault
sizeSize of the loadernumber15
marginMargin of the loadernumber2
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

HashLoader

import { HashLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <HashLoader />

Props

PropDescriptionTypeDefault
sizeSize of the loadernumber50
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

MoonLoader

import { MoonLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <MoonLoader />

Props

PropDescriptionTypeDefault
sizeSize of the loadernumber60
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

PacmanLoader

import { PacmanLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <PacmanLoader />

Props

PropDescriptionTypeDefault
sizeSize of the loadernumber60
marginMargin of the loadernumber2
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
colorBubbleColor of the bubblestring-
colorBubbleHexColor of the bubblestring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

PropagateLoader

import { PropagateLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <PropagateLoader />

Props

PropDescriptionTypeDefault
sizeSize of the loadernumber15
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

PuffLoader

import { PuffLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <PuffLoader />

Props

PropDescriptionTypeDefault
sizeSize of the loadernumber60
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

PulseLoader

import { PulseLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <PulseLoader />

Props

PropDescriptionTypeDefault
sizeSize of the loadernumber15
marginMargin of the loadernumber2
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

RingLoader

import { RingLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <RingLoader />

Props

PropDescriptionTypeDefault
sizeSize of the loadernumber60
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

RiseLoader

import { RiseLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <RiseLoader />

Props

PropDescriptionTypeDefault
sizeSize of the loadernumber15
marginMargin of the loadernumber2
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

RotateLoader

import { RotateLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <RotateLoader />

Props

PropDescriptionTypeDefault
sizeSize of the loadernumber15
marginMargin of the loadernumber2
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

ScaleLoader

import { ScaleLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <ScaleLoader />

Props

PropDescriptionTypeDefault
heightHeight of the loadernumber35
widthWidth of the loadernumber4
radiusRadius of the loadernumber2
marginMargin of the loadernumber2
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

SkewLoader

import { SkewLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <SkewLoader />

Props

PropDescriptionTypeDefault
sizeSize of the loadernumber20
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

SquareLoader

import { SquareLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <SquareLoader />

Props

PropDescriptionTypeDefault
sizeSize of the loadernumber50
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

SyncLoader

import { SyncLoader } from '@pikas-ui/loader'

const Example: React.FC = () => <SyncLoader />

Props

PropDescriptionTypeDefault
sizeSize of the loadernumber15
marginMargin of the loadernumber2
colorNameColor of the loaderstring"primary"
colorHexColor of the loaderstring-
loadingShow the loaderbooleantrue
speedMultiplierSpeed multiplier of the loadernumber1

Contributing

This documentation can be edited on GitHub here