1.1.0 • Published 3 years ago

react-icon-dance v1.1.0

Weekly downloads
48
License
-
Repository
-
Last release
3 years ago

Getting Started

A icon dance style cpmponent deved with react.

📦 Install

yarn add react-icon-dance

or you can:

npm install react-icon-dance

🚀 Usage

import Icon from 'react-icon-dance';
import icon from '../assets/icon.png';

function App() {
  return (
    <Icon size={64} interval={10} src={icon} />
  )
}

📔 API

ParamsDescriptionTypeDefault
asyncThe async properties of extarnal resources <script>booleantrue
mediaThe media properties of extarnal resources <link>, support all/screen/print/handheldstringall
targetThe DOM or Refs of container which need to load the <img>HTMLElement | (() => HTMLElement) | MutableRefObject-

🔨 Contribute

Install dependencies,

$ npm i

Start the dev server,

$ npm start

Build documentation,

$ npm run docs:build

Build library via father-build,

$ npm run build

License

MIT

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago