{"id":15854380,"url":"https://github.com/afeiship/react-absolute-rect","last_synced_at":"2026-05-03T09:36:07.019Z","repository":{"id":57122979,"uuid":"225807722","full_name":"afeiship/react-absolute-rect","owner":"afeiship","description":"Absolute rect for react.","archived":false,"fork":false,"pushed_at":"2021-10-15T01:18:26.000Z","size":322,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-06T08:09:02.461Z","etag":null,"topics":["absolute","react","rect"],"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":"2019-12-04T07:38:58.000Z","updated_at":"2021-10-15T01:18:29.000Z","dependencies_parsed_at":"2022-08-25T17:11:17.470Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/react-absolute-rect","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-absolute-rect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-absolute-rect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-absolute-rect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-absolute-rect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/react-absolute-rect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246698243,"owners_count":20819516,"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":["absolute","react","rect"],"created_at":"2024-10-05T19:41:44.545Z","updated_at":"2026-05-03T09:36:01.997Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-absolute-rect\n\u003e Absolute rect 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-absolute-rect\n```\n\n## properties\n| Name      | Type   | Required | Default | Description                             |\n| --------- | ------ | -------- | ------- | --------------------------------------- |\n| className | string | false    | -       | The extended className for component.   |\n| top       | number | false    | -       | Css style.top(number).                  |\n| right     | number | false    | -       | Css style.right(number).                |\n| bottom    | number | false    | -       | Css style.bottom(number).               |\n| left      | number | false    | -       | Css style.left(number).                 |\n| trbl      | number | false    | 0       | Css style for top, right, bottom, left. |\n| smooth    | bool   | false    | false   | If open css-behavior smooth.            |\n\n\n## usage\n1. import css\n  ```scss\n  @import \"~@jswork/react-absolute-rect/dist/style.css\";\n\n  // or use sass\n  @import \"~@jswork/react-absolute-rect/dist/style.scss\";\n\n  // customize your styles:\n  $react-absolute-rect-options: ()\n  ```\n2. import js\n  ```js\n  import ReactDemokit from '@jswork/react-demokit';\n  import React from 'react';\n  import ReactDOM from 'react-dom';\n  import ReactAbsoluteRect from '@jswork/react-absolute-rect';\n  import './assets/style.scss';\n\n  class App extends React.Component {\n    render() {\n      return (\n        \u003cReactDemokit\n          className=\"p-3 app-container\"\n          url=\"https://github.com/afeiship/react-absolute-rect\"\u003e\n          \u003cReactAbsoluteRect trbl={20}\u003e\n            \u003ch1\u003eReactAbsoluteRect\u003c/h1\u003e\n            \u003cp\u003e\n              \u003cimg src=\"http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg\" /\u003e\n            \u003c/p\u003e\n            \u003cp\u003e\n              \u003cimg src=\"http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg\" /\u003e\n            \u003c/p\u003e\n            \u003cp\u003e\n              \u003cimg src=\"http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg\" /\u003e\n            \u003c/p\u003e\n            \u003cp\u003e\n              \u003cimg src=\"http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg\" /\u003e\n            \u003c/p\u003e\n            \u003cp\u003e\n              \u003cimg src=\"http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg\" /\u003e\n            \u003c/p\u003e\n            \u003cp\u003e\n              \u003cimg src=\"http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg\" /\u003e\n            \u003c/p\u003e\n            \u003cp\u003e\n              \u003cimg src=\"http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg\" /\u003e\n            \u003c/p\u003e\n            \u003cp\u003e\n              \u003cimg src=\"http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg\" /\u003e\n            \u003c/p\u003e\n            \u003cp\u003e\n              \u003cimg src=\"http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg\" /\u003e\n            \u003c/p\u003e\n            \u003cp\u003e\n              \u003cimg src=\"http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg\" /\u003e\n            \u003c/p\u003e\n            \u003cp\u003e\n              \u003cimg src=\"http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg\" /\u003e\n            \u003c/p\u003e\n            \u003cp\u003e\n              \u003cimg src=\"http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg\" /\u003e\n            \u003c/p\u003e\n            \u003cp\u003e\n              \u003cimg src=\"http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg\" /\u003e\n            \u003c/p\u003e\n            \u003cp\u003e\n              \u003cimg src=\"http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg\" /\u003e\n            \u003c/p\u003e\n          \u003c/ReactAbsoluteRect\u003e\n        \u003c/ReactDemokit\u003e\n      );\n    }\n  }\n\n  ReactDOM.render(\u003cApp /\u003e, document.getElementById('app'));\n\n  ```\n\n## documentation\n- https://afeiship.github.io/react-absolute-rect/\n\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/react-absolute-rect/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/react-absolute-rect\n[version-url]: https://npmjs.org/package/@jswork/react-absolute-rect\n\n[license-image]: https://img.shields.io/npm/l/@jswork/react-absolute-rect\n[license-url]: https://github.com/afeiship/react-absolute-rect/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-absolute-rect\n[size-url]: https://github.com/afeiship/react-absolute-rect/blob/master/dist/react-absolute-rect.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/react-absolute-rect\n[download-url]: https://www.npmjs.com/package/@jswork/react-absolute-rect\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Freact-absolute-rect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Freact-absolute-rect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Freact-absolute-rect/lists"}