{"id":16992662,"url":"https://github.com/ixzzd/bs-react-dropdown","last_synced_at":"2025-03-22T04:44:24.926Z","repository":{"id":93927775,"uuid":"176811833","full_name":"ixzzd/bs-react-dropdown","owner":"ixzzd","description":"BuckleScript binding for react-dropdown","archived":false,"fork":false,"pushed_at":"2019-04-08T16:46:36.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T06:57:59.432Z","etag":null,"topics":["bucklescript-bindings","react-dropdown"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/bs-react-dropdown","language":"OCaml","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/ixzzd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-03-20T20:28:08.000Z","updated_at":"2019-04-08T16:46:37.000Z","dependencies_parsed_at":"2023-05-01T03:32:22.884Z","dependency_job_id":null,"html_url":"https://github.com/ixzzd/bs-react-dropdown","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"e14d9a692cf62b5f23e4d55a6a816593dfa25251"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixzzd%2Fbs-react-dropdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixzzd%2Fbs-react-dropdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixzzd%2Fbs-react-dropdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixzzd%2Fbs-react-dropdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ixzzd","download_url":"https://codeload.github.com/ixzzd/bs-react-dropdown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244907378,"owners_count":20529851,"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":["bucklescript-bindings","react-dropdown"],"created_at":"2024-10-14T03:29:53.522Z","updated_at":"2025-03-22T04:44:24.907Z","avatar_url":"https://github.com/ixzzd.png","language":"OCaml","readme":"This is [Bucklescript](https://bucklescript.github.io/) bindings for [react-dropdown](https://github.com/fraserxu/react-dropdown).\n\n# Install, [npm](https://www.npmjs.com/package/bs-react-dropdown)\n\n```\nnpm install --save bs-react-dropdown\n```\n\n# Setup\n\nAdd bs-react-dropdown to `bs-depenencies` in your `bsconfig.json`!\n\n```js\n{\n  /* ... */\n  \"bs-dependencies\": [\n    \"bs-react-dropdown\"\n  ],\n  /* ... */\n}\n```\n\n# Dropdown option type\n\n```re\ntype dropdownOption = {\n  label: string,\n  value: string,\n  className: option(string),\n};\n```\n\n# Basic usage\n\n```re\nopen Dropdown;\n\nlet component = ReasonReact.statelessComponent(__MODULE__);\n\nlet options: dropdownOptions = [|\n  {label: \"label1\", value: \"value1\", className: Some(\"class1\")},\n  {label: \"label2\", value: \"value2\", className: Some(\"class2\")},\n|];\n\nlet make = _children =\u003e {\n  ...component,\n  render: self =\u003e {\n    \u003cDropdown options /\u003e;\n  },\n};\n```\n\nCheck reducer component [example](https://github.com/ixzzd/bs-react-dropdown/tree/master/examples/reducer_component.re)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fixzzd%2Fbs-react-dropdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fixzzd%2Fbs-react-dropdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fixzzd%2Fbs-react-dropdown/lists"}