{"id":14969985,"url":"https://github.com/barisates/react-loading-ui","last_synced_at":"2025-10-26T08:09:42.482Z","repository":{"id":35114994,"uuid":"208284120","full_name":"barisates/react-loading-ui","owner":"barisates","description":"React loaing component.","archived":false,"fork":false,"pushed_at":"2023-08-02T14:16:35.000Z","size":2366,"stargazers_count":8,"open_issues_count":12,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-08T01:43:15.440Z","etag":null,"topics":["block-ui","loader","loading","react","react-component","reactjs","ui-block"],"latest_commit_sha":null,"homepage":"https://barisates.github.io/react-loading-ui/","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/barisates.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-13T14:44:06.000Z","updated_at":"2024-03-22T04:19:45.000Z","dependencies_parsed_at":"2024-09-24T14:23:35.297Z","dependency_job_id":"29dd013b-63ec-4dde-9a4f-7536fe032db9","html_url":"https://github.com/barisates/react-loading-ui","commit_stats":{"total_commits":19,"total_committers":5,"mean_commits":3.8,"dds":0.5789473684210527,"last_synced_commit":"c3c8d4f15b85f926e9cb8a993fefa1300cfe00ae"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/barisates/react-loading-ui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barisates%2Freact-loading-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barisates%2Freact-loading-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barisates%2Freact-loading-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barisates%2Freact-loading-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barisates","download_url":"https://codeload.github.com/barisates/react-loading-ui/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barisates%2Freact-loading-ui/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266991098,"owners_count":24017736,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["block-ui","loader","loading","react","react-component","reactjs","ui-block"],"created_at":"2024-09-24T13:42:48.302Z","updated_at":"2025-10-26T08:09:37.449Z","avatar_url":"https://github.com/barisates.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# react-loading-ui\nReact loaing component.\n\n[![npm package][npm-image]][npm-url] \n[![Build Status][travis-image]][travis-url] \n[![Dependencies Status][david-image]][david-url]\n[![Package Size][bundlephobia-image]][bundlephobia-url]\n\n\n## Getting started\n\n#### Install with NPM:\n\n```\n$ npm install react-loading-ui\n```\n\n#### Usage\n\n**Live Demo [CodeSandbox](https://codesandbox.io/s/react-loading-ui-khrt7 \"CodeSandbox\")**\n\n- Set the default settings (optional).\n- To use, just call the ````Loading()```` function.\n\n\u003e Note: The ````Loading()```` function **toggle** between **hide** and **show**.\n\u003e But instead of **toggling**, you can also use ````ShowLoading()```` and ````HideLoading()````\n\n```jsx\nimport React, { Component } from 'react';\nimport { Loading } from 'react-loading-ui'\n\nclass App extends Component {\n\n    saveForm() {\n\n        /* Show loading-ui */\n        Loading();\n\n        fetch(url, requestOptions)\n            .then((response) =\u003e {\n                if (response.ok) {\n                    return response.json();\n                }\n\n                /* Hide loading-ui */\n                Loading();\n            });\n\n    }\n    render() {\n        return (\n            \u003cdiv\u003e\n                \u003cbutton type=\"button\" onClick={(e) =\u003e this.saveForm()}\u003eSave Form\u003c/button\u003e\n            \u003c/div\u003e\n        )\n    }\n\n}\n\nexport default App;\n```\n\n##### Default Settings\nYou can set the component settings for your entire application or whenever you call ````Loading({settings})````.\n\n```jsx\nSetDefault({\n    /* Loading title */\n    title: \"\",\n    /* Loading text */\n    text: \"\",\n    /* Show progress bar */\n    progress: false,\n    /* Close the loading when progress is over */\n    progressedClose: false,\n    /* Default theme [light|dark] */\n    theme: \"light\",\n    /* Top Bar Loading */\n    topBar: false,\n    /* Top Bar Loading */\n    topBar: false,\n    /* Top Bar Loading Color */\n    topBarColor: '#2764B0',\n});\n```\n##### Loading\n\n````Loading()```` and ```ShowLoading()``` preview with light color theme.\n\n![Loading()](http://barisates.com/git/rlui/loading.jpg \"Loading\")\n\n##### Progress\n```Loading({ progress: true })``` and ```ShowLoading({ progress: true })``` preview with light color theme.\n\nWith the ```Progress(progress)``` function you can ensure the loading progress, see the [demo](https://codesandbox.io/s/react-loading-ui-khrt7 \"demo\").\n\n![Porgress](http://barisates.com/git/rlui/progress.jpg \"Porgress\")\n\n##### Hide Loading\nIf you want to force hiding, you can use ```HideLoading()``` function.\n\n\n##### CSS Overrides\n\nIf you want to customize the styles, you can use the following classNames:\n- loading-ui-overlay\n- loading-ui-body\n- loading-ui-title\n- loading-ui-text\n- loading-ui-spinner\n- loading-ui-progress-bar\n\n------------\n#### Author\n\n**Barış Ateş**\n - http://barisates.com\n - [github/barisates](https://github.com/barisates \"github/barisates\")\n \n[npm-image]:https://img.shields.io/npm/v/react-loading-ui.svg\n[npm-url]:https://www.npmjs.com/package/react-loading-ui\n[travis-image]:https://travis-ci.org/barisates/react-loading-ui.svg?branch=master\n[travis-url]:https://travis-ci.org/barisates/react-loading-ui\n[david-image]:https://david-dm.org/barisates/react-loading-ui.svg\n[david-url]:https://david-dm.org/barisates/react-loading-ui\n[bundlephobia-image]:https://badgen.net/bundlephobia/minzip/react-loading-ui\n[bundlephobia-url]:https://bundlephobia.com/result?p=react-loading-ui\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarisates%2Freact-loading-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarisates%2Freact-loading-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarisates%2Freact-loading-ui/lists"}