0.0.1 • Published 11 months ago

@congritta-ui/loading-wheel v0.0.1

Weekly downloads
-
License
-
Repository
github
Last release
11 months ago

@congritta-ui/loading-wheel

This is loading wheel React component and part of Congritta UI

How to install

  1. Install @congritta-ui/base if you didn't it yet. (More info at: http://ui.congritta.com/docs/base);
  2. Install @congritta-ui/loading-wheel;

Add

import LoadingWheel from '@congritta-ui/loading-wheel';

into your code

How to use

Example:

<LoadingWheel size={50} width={5} spinsPerSecond={.7} />

Props

Prop nameDescriptionIs RequiredDefault value
sizeSize of the wheel (in pixels)true
widthWidth of the ring (in pixels)true
spinsPerSecondHow many spins per secondtrue
colorColor of the ringfalsevar(--cui-accent-color-700)
animationTimingFunctionTiming function for speed. See CSS animation timing function docsfalselinear
additionalClassNameClassname for providing your stylesfalse
domPropsHTML general attributes for div element (like onClick, id and so on)false