1.0.0-rc.3 • Published 3 years ago

@gdo-bzh/spinner v1.0.0-rc.3

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

version

spinner

NPM JavaScript Style Guide

A spinner component is used to indicate the loading state of a component.

the core package contains the following components:

  • FourDots
  • CircleDots

Install

yarn add @gdo-bzh/spinner react

Usage

import React from 'react'
import * as Spinner from '@gdo-bzh/spinner'

const Example = () => (
  <Spinner.CircleDots size="70px" scaleDirection={Spinner.ScaleDirection.both} />
)

Types

type Props = React.SVGAttributes<SVGElement> & {
  size?: Props['width']
} & Pick<DotProps, 'fillColor' | 'radius'>

type DotProps = {
  fillColor?: string
  radius?: number
  animateBegin: string
}

License

MIT © gdo-bzh