{"id":21811509,"url":"https://github.com/dnbard/react-9-slice","last_synced_at":"2025-09-01T03:08:07.385Z","repository":{"id":69792487,"uuid":"102291759","full_name":"dnbard/react-9-slice","owner":"dnbard","description":"9-slice UI Component for React","archived":false,"fork":false,"pushed_at":"2017-09-05T20:01:14.000Z","size":832,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T22:34:53.405Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://dnbard.github.io/react-9-slice/","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/dnbard.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":"2017-09-03T20:18:52.000Z","updated_at":"2025-03-05T21:50:09.000Z","dependencies_parsed_at":"2023-03-22T17:32:27.041Z","dependency_job_id":null,"html_url":"https://github.com/dnbard/react-9-slice","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dnbard/react-9-slice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnbard%2Freact-9-slice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnbard%2Freact-9-slice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnbard%2Freact-9-slice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnbard%2Freact-9-slice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnbard","download_url":"https://codeload.github.com/dnbard/react-9-slice/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnbard%2Freact-9-slice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273068853,"owners_count":25039911,"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-09-01T02:00:09.058Z","response_time":120,"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":[],"created_at":"2024-11-27T13:45:14.033Z","updated_at":"2025-09-01T03:08:07.344Z","avatar_url":"https://github.com/dnbard.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# REACT-9-SLICE\n\n![logo](https://github.com/dnbard/react-9-slice/blob/master/images/logo.png?raw=true)\n\nReact library to create [9-slice image](http://rwillustrator.blogspot.com/2007/04/understanding-9-slice-scaling.html) surfaces. Check [the demo](https://dnbard.github.io/react-9-slice/)!\n\n## Install\n\n```shell\nnpm install react-9-slice --save\n```\n\n## Usage example\n\n```js\nimport React, { Component } from 'react';\nimport React9Slice from 'react-9-slice';\n\nclass MyComponent extends Component(){\n    render(){\n        return \u003cReact9Slice width={ 256 }\n                            height={ 256 }\n                            border={ 85 }\n                            image=\"/images/myImage.png\"\n                            imageSize={{ x: 1024, y: 512 }}\u003e\n            HELLO WORLD!\n        \u003c/React9Slice\u003e\n    }\n}\n```\n\n## API\n\n* `width`, `height` - size of the surface\n* `border` - size of the non-scalable parts\n* `image` - path to the image (you should provide it yourself)\n* `imageSize` - initial size of the image\n* `style` - styles for the `children`\n* `children` - this element are going to be placed in the center of the surface\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnbard%2Freact-9-slice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnbard%2Freact-9-slice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnbard%2Freact-9-slice/lists"}