Package Exports
- @gdo-bzh/spinner
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@gdo-bzh/spinner) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
spinner
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