{"id":13422105,"url":"https://github.com/chr-ge/react-column-select","last_synced_at":"2025-03-15T10:31:39.721Z","repository":{"id":37027593,"uuid":"356346042","full_name":"chr-ge/react-column-select","owner":"chr-ge","description":"React component to select options by transferring them from one column to another.","archived":true,"fork":false,"pushed_at":"2024-09-24T00:06:06.000Z","size":6325,"stargazers_count":14,"open_issues_count":8,"forks_count":2,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2024-10-27T22:31:35.942Z","etag":null,"topics":["column-select","react","react-component","select","typescript"],"latest_commit_sha":null,"homepage":"https://react-column-select.chr-ge.com","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/chr-ge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2021-04-09T17:11:27.000Z","updated_at":"2024-09-24T17:05:25.000Z","dependencies_parsed_at":"2024-05-01T08:46:44.386Z","dependency_job_id":"f43ba984-d9cc-4ff8-82bf-5331120f6e3c","html_url":"https://github.com/chr-ge/react-column-select","commit_stats":{"total_commits":537,"total_committers":3,"mean_commits":179.0,"dds":0.3184357541899442,"last_synced_commit":"b291f3f8c7a0a7598d5ac4266d1c420d5ddce434"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chr-ge%2Freact-column-select","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chr-ge%2Freact-column-select/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chr-ge%2Freact-column-select/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chr-ge%2Freact-column-select/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chr-ge","download_url":"https://codeload.github.com/chr-ge/react-column-select/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243719112,"owners_count":20336592,"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":["column-select","react","react-component","select","typescript"],"created_at":"2024-07-30T23:00:36.995Z","updated_at":"2025-03-15T10:31:39.147Z","avatar_url":"https://github.com/chr-ge.png","language":"TypeScript","funding_links":[],"categories":["UI Components"],"sub_categories":["Form Components"],"readme":"# React Column Select\n\n[![NPM](https://badgen.net/npm/v/react-column-select)](https://www.npmjs.com/package/react-column-select)\n[![CI](https://github.com/chr-ge/react-column-select/actions/workflows/ci.yml/badge.svg?branch=develop)](https://github.com/chr-ge/react-column-select/actions/workflows/ci.yml)\n[![react-column-select](https://img.shields.io/endpoint?url=https://dashboard.cypress.io/badge/simple/p3czr7/develop\u0026style=flat\u0026logo=cypress)](https://dashboard.cypress.io/projects/p3czr7/runs)\n[![DeepScan grade](https://deepscan.io/api/teams/14351/projects/17471/branches/400913/badge/grade.svg)](https://deepscan.io/dashboard#view=project\u0026tid=14351\u0026pid=17471\u0026bid=400913)\n[![SIZE](https://badgen.net/bundlephobia/min/react-column-select)](https://bundlephobia.com/result?p=react-column-select)\n[![Depfu](https://badges.depfu.com/badges/c540bb2dbd4e634a557231ecd335474e/overview.svg)](https://depfu.com/repos/github/chr-ge/react-column-select?project_id=24188)\n![GitHub](https://img.shields.io/github/license/chr-ge/react-column-select)\n\n[Example](https://react-column-select.chr-ge.com/?path=/story/example-column-select--default)\n\n## 🚀 Features\n\n- Easily customize colors\n- Responsive Design\n- Styled with emotion\n- Built with Typescript\n\n## ⚡ Installation\n\n```sh\nyarn add react-column-select\n# or\nnpm i react-column-select\n```\n\n## 🏁 Getting Started\n\n```jsx\nimport React, { useState } from 'react'\nimport ColumnSelect from 'react-column-select'\n\nconst hobbies = [\n  { value: '1', label: 'Hockey' },\n  { value: '2', label: 'Painting' },\n  { value: '3', label: 'Singing' },\n]\n\nconst HobbiesSelect = () =\u003e {\n  const [selected, setSelected] = useState([])\n\n  const onChange = (values) =\u003e {\n    setSelected(values)\n  }\n\n  return (\n    \u003cdiv\u003e\n      \u003ch2\u003eSelect Your Hobbies\u003c/h2\u003e\n      \u003cColumnSelect\n        options={hobbies}\n        onChange={onChange}\n        labels={{\n          leftHeader: 'Available Hobbies',\n          rightHeader: 'Selected Hobbies',\n        }}\n      /\u003e\n    \u003c/div\u003e\n  )\n}\n```\n\n## ⚙️ Props\n\n| name                 | type     | isRequired | default     | description                                         |\n| -------------------- | -------- | ---------- | ----------- | --------------------------------------------------- |\n| `options`            | array    | ✔          | N/A         | available select options                            |\n| `onChange`           | function | ✔          | N/A         | function called when selected values change         |\n| `defaultValue`       | array    | ✖          | []          | set the initial selected values                     |\n| `max`                | number   | ✖          | N/A         | set the max number of options that can be selected  |\n| `labels`             | object   | ✖          | _see below_ | the labels for the headers, buttons \u0026 search input  |\n| `theme`              | object   | ✖          | _see below_ | the color theme                                     |\n| `isSearchable`       | boolean  | ✖          | false       | enables searching                                   |\n| `disableAllButtons`  | boolean  | ✖          | false       | disable the \"Add All\" and \"Remove All\" buttons      |\n| `disableDoubleClick` | boolean  | ✖          | false       | disable double click to add/remove an option        |\n| `disableKeyboard`    | boolean  | ✖          | false       | disable navigation the select options with keyboard |\n\n## 🎨 Theme Customization\n\nBelow is the default theme. Change the values that you want to customize:\n\n```jsx\n{\n    headerBgColor: '#d1d5db',\n    columnBorderColor: '#9ca3af',\n    textColor: '#000000',\n    columnBgColor: '#CBD5E0',\n    buttonBgColor: '#CBD5E0',\n    optionSelectedBgColor: '#EDF2F7',\n    optionHoverBgColor: '#FAFBFC',\n    searchFocusBorderColor: '#06b6d4',\n}\n```\n\n## 🏷️ Label Customization\n\nBelow are the default labels. Change the values that you want to customize:\n\n```jsx\n{\n    leftHeader: 'Options',\n    rightHeader: 'Selected',\n    searchPlaceholder: 'Search ...',\n    add: 'Add',\n    addAll: 'Add All',\n    remove: 'Remove',\n    removeAll: 'Remove All',\n}\n```\n\n## License\n\nDistributed under the MIT license. See `LICENSE` for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchr-ge%2Freact-column-select","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchr-ge%2Freact-column-select","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchr-ge%2Freact-column-select/lists"}