@happyfresh/spinner
v2.2.0
Published
HappyFresh UI components that is a spinner
Downloads
35
Keywords
Readme
Spinner
Spinner animation for loading/data fetching. This current version only available for one size (16x16)px. You can also insert color props and/or styles props to override css.
Installation
yarn add @happyfresh/spinner
Usage
import React from 'react';
import { Spinner } from './src/index';
export const Example = () => (
<React.Fragment>
<Spinner styles={{ padding: '16px' }}/>
<Spinner color='green' styles={{ padding: '16px' }}/>
</React.Fragment>
);