{"id":15829021,"url":"https://github.com/afeiship/react-loading","last_synced_at":"2026-04-24T16:37:06.354Z","repository":{"id":57122964,"uuid":"76226975","full_name":"afeiship/react-loading","owner":"afeiship","description":"Spinner component for react.","archived":false,"fork":false,"pushed_at":"2021-02-20T08:13:08.000Z","size":648,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-06T08:09:10.400Z","etag":null,"topics":["component","react","spinner"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-12T06:07:06.000Z","updated_at":"2021-02-20T08:13:10.000Z","dependencies_parsed_at":"2022-08-24T14:59:32.728Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/react-loading","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-loading","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-loading/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-loading/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-loading/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/react-loading/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246628227,"owners_count":20808106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["component","react","spinner"],"created_at":"2024-10-05T11:00:29.431Z","updated_at":"2026-04-24T16:37:01.334Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","readme":"# react-loading\n\u003e Spinner component for react.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```shell\nnpm install -S @jswork/react-loading\n```\n\n## properties\n| Name          | Type   | Required | Default                 | Description                             |\n| ------------- | ------ | -------- | ----------------------- | --------------------------------------- |\n| mainClassName | string | false    | 'webkit-sassui-loading' | The loading key effect css className.   |\n| backdrop      | union  | false    | -                       | Backdrop props or not display backdrop. |\n\n\n## usage\n1. import css\n  ```scss\n  @import \"~@feizheng/webkit-sassui-backdrop\";\n  @import \"~@feizheng/webkit-sassui-loading\";\n  @import \"~@feizheng/react-loading/dist/style.scss\";\n\n  // customize your styles:\n  $react-loading-options: ()\n  ```\n2. import js\n  ```js\n  import ReactLoading from '@feizheng/react-loading';\n  import ReactDOM from 'react-dom';\n  import React from 'react';\n  import { Controller } from '@feizheng/react-visible';\n  import './assets/style.scss';\n\n  class App extends React.Component {\n    state = {\n      value: false\n    };\n\n    componentDidMount() {\n      Controller.singleton(ReactLoading, {\n        // children: 'loading',\n        backdrop: {\n          transparent: true,\n          onClick: () =\u003e {\n            ReactLoading.dismiss(() =\u003e {\n              console.log('after dismiss');\n            });\n          }\n        }\n      });\n    }\n\n    render() {\n      return (\n        \u003cdiv className=\"app-container\"\u003e\n          \u003cbutton\n            className=\"button\"\n            onClick={(e) =\u003e {\n              ReactLoading.present(\n                () =\u003e {\n                  console.log('after present');\n                },\n                { children: `[ ${Math.random().toString(36).slice(-6)} ]` }\n              );\n            }}\u003e\n            Show Dynamic Loading.\n          \u003c/button\u003e\n        \u003c/div\u003e\n      );\n    }\n  }\n\n  ReactDOM.render(\u003cApp /\u003e, document.getElementById('app'));\n  ```\n\n## documentation\n- https://afeiship.github.io/react-loading/\n\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/react-loading/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/react-loading\n[version-url]: https://npmjs.org/package/@jswork/react-loading\n\n[license-image]: https://img.shields.io/npm/l/@jswork/react-loading\n[license-url]: https://github.com/afeiship/react-loading/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-loading\n[size-url]: https://github.com/afeiship/react-loading/blob/master/dist/react-loading.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/react-loading\n[download-url]: https://www.npmjs.com/package/@jswork/react-loading\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Freact-loading","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Freact-loading","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Freact-loading/lists"}