@gdo-bzh/spinner
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-rc.3 • Public • Published

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

Package Sidebar

Install

npm i @gdo-bzh/spinner

Weekly Downloads

0

Version

1.0.0-rc.3

License

MIT

Unpacked Size

21.7 kB

Total Files

8

Last publish

Collaborators

  • gdo