{"id":16416001,"url":"https://github.com/skycloud1030/react-selectlist","last_synced_at":"2025-03-21T03:32:06.337Z","repository":{"id":5815339,"uuid":"53991331","full_name":"skycloud1030/react-selectlist","owner":"skycloud1030","description":"React component used for selecting multiple values or single states from several options","archived":false,"fork":false,"pushed_at":"2023-01-04T08:48:31.000Z","size":3482,"stargazers_count":2,"open_issues_count":16,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-14T23:59:17.737Z","etag":null,"topics":["checkbox","radio","react"],"latest_commit_sha":null,"homepage":"https://skycloud1030.github.io/react-selectlist/html/checkbox.html","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/skycloud1030.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}},"created_at":"2016-03-16T01:34:12.000Z","updated_at":"2021-04-06T02:12:59.000Z","dependencies_parsed_at":"2023-01-13T13:42:42.762Z","dependency_job_id":null,"html_url":"https://github.com/skycloud1030/react-selectlist","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skycloud1030%2Freact-selectlist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skycloud1030%2Freact-selectlist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skycloud1030%2Freact-selectlist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skycloud1030%2Freact-selectlist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skycloud1030","download_url":"https://codeload.github.com/skycloud1030/react-selectlist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244733740,"owners_count":20501012,"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":["checkbox","radio","react"],"created_at":"2024-10-11T07:08:04.473Z","updated_at":"2025-03-21T03:32:05.953Z","avatar_url":"https://github.com/skycloud1030.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-selectlist\r\n\r\n[![Travis](https://api.travis-ci.org/skycloud1030/react-selectlist.svg?branch=master)](https://travis-ci.org/skycloud1030/react-selectlist)\r\n[![Coverage Status](https://coveralls.io/repos/github/skycloud1030/react-selectlist/badge.svg?branch=master)](https://coveralls.io/github/skycloud1030/react-selectlist?branch=master)\r\n[![Version](https://img.shields.io/npm/v/react-selectlist.svg)](https://www.npmjs.com/package/react-selectlist)\r\n[![license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE)\r\n[![Donloads](https://img.shields.io/npm/dm/react-selectlist.svg)](https://www.npmjs.com/package/react-selectlist)\r\n\r\nReact component used for selecting multiple values or single statess from several options\r\n\r\n## Install\r\n\r\n```sh\r\nnpm i --save react-selectlist\r\n```\r\n\r\n## Demo\r\n\r\n- [preview](https://skycloud1030.github.io/react-selectlist/html/checkbox.html)\r\n- [code](https://github.com/skycloud1030/react-selectlist/blob/gh-pages/app/checkbox.jsx)\r\n\r\n## props\r\n\r\n```js\r\nimport ReactSelectList from \"react-selectlist\";\r\n\u003cReactSelectList\r\n  data={data}\r\n  disabled={[true, true]}\r\n  value={selected}\r\n  multiple={multiple}\r\n  orientation={orientation}\r\n  onChange={this._onSelectChange}\r\n/\u003e;\r\n```\r\n\r\n### data\r\n\r\n```sh\r\ndata:[\r\n  { value: 1, label: 'Nuggets'},\r\n  { value: 2, label: 'Jazz'},\r\n  { value: 3, label: 'Warriors' },\r\n  { value: 4, label: 'Lakers' },\r\n]\r\n\r\nor\r\n\r\ndata:[0,1,2,3,4]\r\n```\r\n\r\n### value\r\n\r\n```sh\r\narray: [1,2,3]\r\n```\r\n\r\n### valueField \u0026 textField\r\n\r\n```sh\r\nstring: default value \u0026 label\r\n```\r\n\r\n### multiple\r\n\r\n```sh\r\ntype boolean: true|false\r\n```\r\n\r\n### orientation\r\n\r\n```sh\r\nstring :horizontal|vertical\r\n```\r\n\r\n### onChange\r\n\r\n```sh\r\ncall back function\r\nThe select value return in string array\r\nreturn ([\"0\",\"1\"],id)\r\n```\r\n\r\n## License\r\n\r\n```sh\r\nMIT\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskycloud1030%2Freact-selectlist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskycloud1030%2Freact-selectlist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskycloud1030%2Freact-selectlist/lists"}