{"id":23174456,"url":"https://github.com/jiyuujin/nekohack-ui","last_synced_at":"2025-08-18T09:31:03.852Z","repository":{"id":42357075,"uuid":"281024893","full_name":"jiyuujin/nekohack-ui","owner":"jiyuujin","description":":atom: A React UI components for Web","archived":false,"fork":false,"pushed_at":"2023-01-29T04:21:52.000Z","size":492,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-04T02:53:30.470Z","etag":null,"topics":["react","react-dom","styled-components","typescript","ui-components"],"latest_commit_sha":null,"homepage":"https://npm.im/nekohack-ui","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jiyuujin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-20T05:44:51.000Z","updated_at":"2025-01-08T07:08:28.000Z","dependencies_parsed_at":"2023-02-15T20:45:51.006Z","dependency_job_id":null,"html_url":"https://github.com/jiyuujin/nekohack-ui","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"purl":"pkg:github/jiyuujin/nekohack-ui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiyuujin%2Fnekohack-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiyuujin%2Fnekohack-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiyuujin%2Fnekohack-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiyuujin%2Fnekohack-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jiyuujin","download_url":"https://codeload.github.com/jiyuujin/nekohack-ui/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiyuujin%2Fnekohack-ui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270973178,"owners_count":24678048,"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-08-18T02:00:08.743Z","response_time":89,"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":["react","react-dom","styled-components","typescript","ui-components"],"created_at":"2024-12-18T05:20:21.051Z","updated_at":"2025-08-18T09:31:03.514Z","avatar_url":"https://github.com/jiyuujin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nekohack-ui\n\n\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://npmjs.com/package/nekohack-ui\"\u003e\n    \u003cimg alt=\"\" src=\"https://img.shields.io/npm/v/nekohack-ui/latest.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://npmjs.com/package/nekohack-ui\"\u003e\n    \u003cimg alt=\"\" src=\"https://img.shields.io/npm/v/nekohack-ui/beta.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://npmjs.com/package/nekohack-ui\"\u003e\n    \u003cimg alt=\"\" src=\"https://img.shields.io/npm/dt/nekohack-ui.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\n\nInstall [nekohack-ui](https://www.npmjs.com/package/nekohack-ui) package.\n\n```bash\nnpm i nekohack-ui\nnpm i react react-dom styled-components\n\nyarn add nekohack-ui\nyarn add react react-dom styled-components\n```\n\n## Atomic Components\n\n### Button\n\n```tsx\nimport * as React from 'react'\n\nimport { NekoButton } from 'nekohack-ui'\n\nexport const App = () =\u003e {\n    const submit = () =\u003e {\n        //\n    }\n    return (\n        \u003cNekoButton onClick={submit}\u003eButton\u003c/NekoButton\u003e\n    )\n}\n```\n\n#### Props\n\n| # | Type | Default |\n|:---|:---|:---|\n| children | `React.ReactNode` `Array\u003cReact.ReactNode\u003e` | `` |\n| onClick | `Function` | `` |\n\n### Input\n\n```tsx\nimport * as React from 'react'\n\nimport { NekoInput } from 'nekohack-ui'\n\nexport const App = () =\u003e {\n    const [value, setValue] = React.useState('Input')\n    return (\n        \u003cNekoInput value={value} onChange={setValue} /\u003e\n    )\n}\n```\n\n#### Props\n\n| # | Type | Default |\n|:---|:---|:---|\n| id | `String` | `` |\n| role | `String` | `` |\n| label | `String` | `` |\n| explain | `String` | `` |\n| value | `String` | `` |\n| placeholder | `String` | `` |\n| password | `String` | `` |\n| targets | `Array\u003cString\u003e` | `[]` |\n| onChange | `Function` | `` |\n\n### Label\n\n```tsx\nimport * as React from 'react'\n\nimport { NekoLabel } from 'nekohack-ui'\n\nexport const App = () =\u003e {\n    return (\n        \u003cNekoLabel\u003eLabel\u003c/NekoLabel\u003e\n    )\n}\n```\n\n#### Props\n\n| # | Type | Default |\n|:---|:---|:---|\n| children | `React.ReactNode` | `` |\n\n### Select\n\n```tsx\nimport * as React from 'react'\n\nimport { NekoSelect } from 'nekohack-ui'\n\nconst options = [\n    {\n        value: 1,\n        text: 'Angular',\n    },\n    {\n        value: 2,\n        text: 'React',\n    },\n    {\n        value: 3,\n        text: 'Vue',\n    },\n]\n\nexport const App = () =\u003e {\n    const [value, setValue] = React.useState(1)\n    return (\n        \u003cNekoSelect options={options} value={value} onChange={setValue} /\u003e\n    )\n}\n```\n\n#### Props\n\n| # | Type | Default |\n|:---|:---|:---|\n| id | `String` | `` |\n| label | `String` | `` |\n| explain | `String` | `` |\n| options | `Array\u003c{ value: number text: string}\u003e` | `` |\n| value | `Number` | `` |\n| onChange | `Function` | `` |\n\n## Modules\n\n### Accordion\n\n```tsx\nimport * as React from 'react'\n\nimport { NekoAccordion } from 'nekohack-ui'\n\ntype Item = {\n    itemId: number\n    itemName: string\n    backgroundColor: string\n    color: string\n}\n\nconst singleItemList: Item[] = [\n    {\n        itemId: 0,\n        itemName: 'Web',\n        backgroundColor: '#0033ff',\n        color: '#fff',\n    },\n    {\n        itemId: 1,\n        itemName: 'HTML5',\n        backgroundColor: '#0099ff',\n        color: '#000',\n    },\n    {\n        itemId: 2,\n        itemName: 'CSS',\n        backgroundColor: '#00ff99',\n        color: '#000',\n    },\n]\n\nexport const App = () =\u003e {\n    const handleItemClass = () =\u003e {\n        //\n    }\n    return (\n        \u003cNekoAccordion\n            labelText=\"Front\"\n            title=\"Markup\"\n            items={singleItemList}\n            updateItemClass={handleItemClass}\n        /\u003e\n    )\n}\n```\n\n#### Props\n\n| # | Type | Default |\n|:---|:---|:---|\n| labelText | `String` | `` |\n| title | `String` | `` |\n| items | `Array\u003cItem\u003e` | `` |\n| updateItemClass | `Function` | `` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiyuujin%2Fnekohack-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiyuujin%2Fnekohack-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiyuujin%2Fnekohack-ui/lists"}