@jdcfe/lottie-loading
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

安装 & 使用

yarn add @jdcfe/lottie-loading

React 版本要求

  • react^16.8.0

DEMO

const App: React.FC = () => <Loading renderer="canvas" />;

API

参数 说明 类型 默认值 必须
prefixCls 组件 class 前缀 string Yep-loading false
style 组件样式 object {} false
className 组件额外样式 string - false
animationData lottie 动画所需要的 json 文件(an Object with the exported animation data) json 文件 京东 App 动画 false
loop 循环播放 boolean/number true false
autoplay 是否立即播放 boolean true false
renderer 'svg' 、 'canvas' 、 'html' to set the renderer string svg false

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @jdcfe/lottie-loading

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

84 kB

Total Files

12

Last publish

Collaborators

  • org.legao
  • freeman007
  • ins0mn1a
  • codeww
  • hanyuxinting
  • beanlee
  • halber