{"id":18570173,"url":"https://github.com/vpukhanov/react-character-map","last_synced_at":"2026-03-15T03:41:51.525Z","repository":{"id":42681891,"uuid":"267265032","full_name":"vpukhanov/react-character-map","owner":"vpukhanov","description":"An easy to include character map selector component built with React","archived":false,"fork":false,"pushed_at":"2024-08-29T07:32:52.000Z","size":3093,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-29T05:07:46.633Z","etag":null,"topics":["character-map","component","component-library","react"],"latest_commit_sha":null,"homepage":"https://react-character-map.js.org","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/vpukhanov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2020-05-27T08:33:51.000Z","updated_at":"2024-06-21T21:57:54.000Z","dependencies_parsed_at":"2024-06-22T13:01:23.397Z","dependency_job_id":"ec577bea-d8ba-496c-bc5c-10991c856995","html_url":"https://github.com/vpukhanov/react-character-map","commit_stats":{"total_commits":121,"total_committers":10,"mean_commits":12.1,"dds":0.6694214876033058,"last_synced_commit":"9263f0c6cf4a0753f8b3cb71f66144bf353d8a46"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpukhanov%2Freact-character-map","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpukhanov%2Freact-character-map/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpukhanov%2Freact-character-map/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpukhanov%2Freact-character-map/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vpukhanov","download_url":"https://codeload.github.com/vpukhanov/react-character-map/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223429230,"owners_count":17143618,"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":["character-map","component","component-library","react"],"created_at":"2024-11-06T22:37:57.209Z","updated_at":"2025-12-24T03:42:22.025Z","avatar_url":"https://github.com/vpukhanov.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @vpukhanov/react-character-map [![Storybook](https://raw.githubusercontent.com/storybookjs/brand/master/badge/badge-storybook.svg)](https://react-character-map.now.sh/)\n\n`@vpukhanov/react-character-map` is an easy to include character map selector component built with React. It provides a simple user interface to select a character from a categorised list. It is based on the original `react-character-map` by Joel Day, but rebuilt from the ground up using TypeScript\nand functional components.\n\n[View live Storybook example](https://react-character-map.now.sh/)\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://i.imgur.com/nmtkZ73.png\"\u003e\n    \u003cimg src=\"https://i.imgur.com/nmtkZ73.png\" width=\"386\" alt=\"react-character-map preview image\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Basic Usage](#basic-usage)\n  - [Advanced Usage](#advanced-usage)\n- [Contributions](#contributions)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## Installation\n\n```\nnpm install @vpukhanov/react-character-map\n```\n\n## Usage\n\n### Basic Usage\n\nYou can use the pre-configured `CharMap` component that includes the category menu and the character selector itself. Provide\n`onSelect` callback to receive character data of the user's selection. Optionally provide the `characterData` prop to replace\nthe built-in symbols with your own. You can also change the category that is selected by default by passing in a\n`defaultSelectedCategory` prop and define how the category names are displayed using the `categoryNames` prop.\n\n```tsx\nimport { CharMap } from \"@vpukhanov/react-character-map\";\n// ...\n\u003cCharMap onSelect={(char) =\u003e alert(`You selected ${char.char}!`)} /\u003e;\n```\n\n### Advanced Usage\n\nYou can also use separate `CharMapCategoriesList` and `CharMapSelector` components if you want to build a custom layout.\nThey have to be wrapped in a `CharMapContextProvider` in order to function correctly.\n\n```tsx\nimport {\n  CharMapCategoriesList,\n  CharMapSelector,\n  CharMapContextProvider,\n} from \"@vpukhanov/react-character-map\";\n// ...\n\u003cCharMapContextProvider\u003e\n  \u003cCharMapCategoriesList /\u003e\n  \u003cdiv\u003eSome text between categories and selector\u003c/div\u003e\n  \u003cCharMapSelector onSelect={(char) =\u003e alert(`You selected ${char.char}!`)} /\u003e\n\u003c/CharMapContextProvider\u003e;\n```\n\n`CharMapContextProvider` accepts the `characterData`, `defaultSelectedCategory` and `categoryNames` props described earlier.\n`CharMapCategoriesList` allows for additional customisations by setting the optional `buttonClassName` and\n`activeButtonClassName` props.\n\n## Contributions\n\nAll contributions are welcomed, feel free to send a pull request straight away, unless it's a major change. In that case\nplease create an issue for prior discussion.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvpukhanov%2Freact-character-map","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvpukhanov%2Freact-character-map","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvpukhanov%2Freact-character-map/lists"}