{"id":20447619,"url":"https://github.com/acrool/acrool-react-block","last_synced_at":"2025-06-18T00:34:47.697Z","repository":{"id":248331664,"uuid":"828408817","full_name":"acrool/acrool-react-block","owner":"acrool","description":"react block component","archived":false,"fork":false,"pushed_at":"2025-05-14T08:38:07.000Z","size":2169,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T09:56:02.236Z","etag":null,"topics":["react","react-block","react-portal","typescript"],"latest_commit_sha":null,"homepage":"https://acrool-react-block.pages.dev/","language":"TypeScript","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/acrool.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-07-14T04:04:16.000Z","updated_at":"2025-06-03T04:30:39.000Z","dependencies_parsed_at":"2024-07-14T05:21:33.663Z","dependency_job_id":"cfab9dae-b96e-4934-98a4-8699d0643980","html_url":"https://github.com/acrool/acrool-react-block","commit_stats":null,"previous_names":["acrool/acrool-react-block"],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrool%2Facrool-react-block","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrool%2Facrool-react-block/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrool%2Facrool-react-block/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrool%2Facrool-react-block/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acrool","download_url":"https://codeload.github.com/acrool/acrool-react-block/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrool%2Facrool-react-block/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258198730,"owners_count":22663740,"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":["react","react-block","react-portal","typescript"],"created_at":"2024-11-15T10:28:04.917Z","updated_at":"2025-06-18T00:34:42.672Z","avatar_url":"https://github.com/acrool.png","language":"TypeScript","funding_links":[],"categories":["React underlying structure"],"sub_categories":[],"readme":"# Acrool React Block\n\n\u003ca href=\"https://acrool-react-block.pages.dev/\" title=\"Acrool React Block - This is a block function for React development loading block\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/acrool/acrool-react-block/main/example/public/og.webp\" alt=\"Acrool React Block Logo\"/\u003e\n\u003c/a\u003e\n\n\u003cp align=\"center\"\u003e\n    This is a toast message function for React development notifications\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![NPM](https://img.shields.io/npm/v/@acrool/react-block.svg?style=for-the-badge)](https://www.npmjs.com/package/@acrool/react-block)\n[![npm](https://img.shields.io/bundlejs/size/@acrool/react-block?style=for-the-badge)](https://github.com/acrool/@acrool/react-block/blob/main/LICENSE)\n[![npm](https://img.shields.io/npm/l/@acrool/react-block?style=for-the-badge)](https://github.com/acrool/react-block/blob/main/LICENSE)\n\n[![npm downloads](https://img.shields.io/npm/dm/@acrool/react-block.svg?style=for-the-badge)](https://www.npmjs.com/package/@acrool/react-block)\n[![npm](https://img.shields.io/npm/dt/@acrool/react-block.svg?style=for-the-badge)](https://www.npmjs.com/package/@acrool/react-block)\n\n\u003c/div\u003e\n\n\n\n\n## Features\n\n- Supports queue block list\n- Plug and unplug using `@acrool/react-portal` and `framer-motion`\n\n## Install\n\n```bash\nyarn add framer-motion @acrool/react-block\n```\n\nin your packages. (Make the version of styled-component you use match the version of styled-component used in acrool-react-gird)\n\n```json\n\"resolutions\": {\n    \"framer-motion\": \"^11.x\"\n}\n```\n\n\n## Usage\n\nadd in your index.tsx\n```tst\nimport \"@acrool/react-block/dist/index.css\";\n```\n\nadd in your App.tsx\n\n```tsx\nimport {BlockPortal} from \"@acrool/react-block\";\n\nconst App = () =\u003e {\n    return (\n        \u003cdiv\u003e\n            \u003cBaseUsed/\u003e\n            \u003cBlockPortal\n                isVisibleQueueKey={false}\n                loader={\u003cLoader/\u003e}\n                defaultMessage=\"Loading...\"\n            /\u003e\n        \u003c/div\u003e\n    );\n};\n```\n\nthen in your page\n\n```tsx\nimport {block} from '@acrool/react-block';\nimport {useEffect} from \"react\";\n\nconst Example = () =\u003e {\n\n    useEffect(() =\u003e {\n        block.show();\n        \n        setTimeout(() =\u003e {\n            block.hide();\n        }, 3000)\n    }, []);\n\n    return (\n        \u003cdiv\u003e\n            sample page\n        \u003c/div\u003e\n    );\n};\n```\n\n- block.show\n- block.hide\n\n\nThere is also a example that you can play with it:\n\n[![Play react-editext-example](https://raw.githubusercontent.com/acrool/acrool-react-block/main/play-in-example-button.svg)](https://acrool-react-block.pages.dev)\n\n\n## License\n\nMIT © [Acrool](https://github.com/acrool) \u0026 [Imagine](https://github.com/imagine10255)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facrool%2Facrool-react-block","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facrool%2Facrool-react-block","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facrool%2Facrool-react-block/lists"}