{"id":28463094,"url":"https://github.com/termoxin/react-poll","last_synced_at":"2026-04-15T19:36:18.164Z","repository":{"id":39522149,"uuid":"190224916","full_name":"termoxin/react-poll","owner":"termoxin","description":"The component for creating polls in React","archived":false,"fork":false,"pushed_at":"2023-01-03T23:24:50.000Z","size":4749,"stargazers_count":4,"open_issues_count":25,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-07T04:37:37.360Z","etag":null,"topics":["beauty","javascript","jsx","poll","react","ui","widget"],"latest_commit_sha":null,"homepage":"","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/termoxin.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}},"created_at":"2019-06-04T15:07:48.000Z","updated_at":"2023-03-09T03:05:46.000Z","dependencies_parsed_at":"2023-02-01T13:31:51.257Z","dependency_job_id":null,"html_url":"https://github.com/termoxin/react-poll","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/termoxin/react-poll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/termoxin%2Freact-poll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/termoxin%2Freact-poll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/termoxin%2Freact-poll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/termoxin%2Freact-poll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/termoxin","download_url":"https://codeload.github.com/termoxin/react-poll/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/termoxin%2Freact-poll/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262897198,"owners_count":23381370,"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":["beauty","javascript","jsx","poll","react","ui","widget"],"created_at":"2025-06-07T04:37:31.456Z","updated_at":"2025-10-19T03:08:43.399Z","avatar_url":"https://github.com/termoxin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Installation\n\n```sh\nnpm install @termoxin/react-poll\n```\n\n## Usage\n\n**Using NPM**\n\n1 . Require @termoxin/react-poll after installation\n\n```js\nimport ReactPoll.Poll from \"@termoxin/react-poll\";\n```\n\n2 . Include semantic-css for styling component\n\n```html\n\u003clink\n  rel=\"stylesheet\"\n  href=\"//cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css\"\n/\u003e\n```\n\n3 . Include @termoxin/react-poll component\n\n```js\n\u003cReactPoll.Poll /\u003e\n```\n\n## EXAMPLE\n\n[Example's code](https://github.com/termoxin/react-poll-examples/tree/master/src)\n\n[Check demo](https://termoxin.github.io/react-poll-examples/)\n\n## Options\n\nNotes:\n\n- The tooltip sets `type: fill` as **default** attributes. You don't have to add these options if you don't want to change the defaults\n\n| Global    |  Type   | Values       | Description                                                                                        |\n| --------- | :-----: | :----------- | :------------------------------------------------------------------------------------------------- |\n| questions |  Array  |              | These is an array to use for `\u003cPoll /\u003e`                                                       |\n| type      | string  | arrows, fill | Poll type                                                                                          |\n| logging      | boolean | true, false  | Logs switch on/off for `\u003cLogs /\u003e` component                                                        |\n| name      | string  |              | A name that's showing in logs (after each a completed poll, component creates a log in locaStorage |\n\n**Data structure for questions**:\n\n| Property      | Type                    | Values                | Description                                                                                    |\n| ------------- | :---------------------- | :-------------------- | :--------------------------------------------------------------------------------------------- |\n| id            | number or string        |                       | The question id                                                                                |\n| text          | string                  |                       | The question text                                                                              |\n| type          | string                  | fill, checkbox, radio | The question type                                                                              |\n| description   | string                  |                       | The question description                                                                       |\n| answers       | string or array\u003cstring\u003e |                       | The variety of answers                                                                         |\n| correctAnswer | string                  |                       | The answers. The data depends on question type(fill, radio - string, checkbox - Array\u003cstring\u003e) |\n\n## Contributing\n\nWe welcome your contribution! Fork the repo, make some changes, submit a pull-request!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftermoxin%2Freact-poll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftermoxin%2Freact-poll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftermoxin%2Freact-poll/lists"}