{"id":19914165,"url":"https://github.com/alexgurr/react-conversation-form","last_synced_at":"2025-07-04T20:32:22.002Z","repository":{"id":26542727,"uuid":"109153866","full_name":"alexgurr/react-conversation-form","owner":"alexgurr","description":"A React wrapper/version for Space10's Conversational Form - https://github.com/space10-community/conversational-form","archived":false,"fork":false,"pushed_at":"2022-12-07T18:25:33.000Z","size":1247,"stargazers_count":17,"open_issues_count":12,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-14T06:21:23.346Z","etag":null,"topics":["answers","chat","conversation","conversational","conversational-form","form","questions","react","react-conversational-form","space10"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/alexgurr.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":"2017-11-01T16:15:00.000Z","updated_at":"2022-09-06T13:31:01.000Z","dependencies_parsed_at":"2023-01-14T04:53:38.789Z","dependency_job_id":null,"html_url":"https://github.com/alexgurr/react-conversation-form","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexgurr%2Freact-conversation-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexgurr%2Freact-conversation-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexgurr%2Freact-conversation-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexgurr%2Freact-conversation-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexgurr","download_url":"https://codeload.github.com/alexgurr/react-conversation-form/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224353760,"owners_count":17297325,"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":["answers","chat","conversation","conversational","conversational-form","form","questions","react","react-conversational-form","space10"],"created_at":"2024-11-12T21:35:26.651Z","updated_at":"2024-11-12T21:35:26.759Z","avatar_url":"https://github.com/alexgurr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-conversation-form \u0026middot; [![npm](https://img.shields.io/npm/v/react-conversation-form.svg?style=flat-square)](https://www.npmjs.com/package/react-conversation-form)   [![npm](https://img.shields.io/npm/dt/react-conversation-form.svg?style=flat-square)]()\n\nA React wrapper for Conversational Form (https://github.com/space10-community/conversational-form).\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Options](#options)\n- [ToDo](#todo)\n\n## Installation\n\n`npm install react-conversation-form --save`\n\nor \n\n`yarn add react-conversation-form`\n\n## Usage\n\nFor Example (Feedback Form):\n\n     import { Conversation, Select, Question, Option } from 'react-conversation-form';\n     // const { Conversation, Select, Question, Option } = require('react-conversation-form');\n     \n     \u003cConversation\n          onSubmit={() =\u003e {}}\n          chatOptions={{\n              thankTheUser: ['identifier', 'feedbackType'],\n              introText: 'Hi there. Lets leave some feedback! To edit any of your responses, just click on them.',\n              submitText: 'Thanks for giving us your feedback!'\n          }}\n      \u003e\n          \u003cSelect id=\"feedbackType\" question=\"What type of feedback are you thinking of?\"\u003e\n              \u003cOption value=\"issue\"\u003eIssue\u003c/Option\u003e\n              \u003cOption value=\"typo\"\u003eTypo\u003c/Option\u003e\n              \u003cOption value=\"praise\"\u003ePraise\u003c/Option\u003e\n              \u003cOption value=\"other\"\u003eOther\u003c/Option\u003e\n          \u003c/Select\u003e\n          \u003cQuestion id=\"email\" validation={text =\u003e text.includes('@')}\u003e\n              {'What\\'s your company email address, so we can identify you?'}\n          \u003c/Question\u003e\n          \u003cQuestion id=\"feedback\" validation=\"^[a-zA-Z ]+$\"\u003e\n              What are you thinking?\n          \u003c/Question\u003e\n      \u003c/Conversation\u003e\n  \n## Options\n\n### Conversation\n* `onSubmit` - *function* Callback function for the form contents when the user has finished (**required**)\n* `chatOptions` - *object* Extra options for the chat `default: {}`\n    * `robotResponseTime` - *number* The time (ms) the robot takes before responding\n    * `robotChainResponseTime` - *number* The time (ms) the robot takes between chained messages\n    * `showUserThinking` - *boolean* Whether to show the user writing '...' while waiting for response\n    * `robotChainResponseTime` - *number* The time (ms) the robot takes between chained messages\n    * `thankTheUser` - *array* Array of question IDs that the bot should thank the user after answering\n    * `introText` - *string* The opening message from the bot\n    * `submittedResponseText` - *string* Closing response message from the bot\n\n### Question\n\n### Select\n\n### Option\n\n## ToDo:\n\n- Expose icons and all configuration options through props (only subset currently supported)\n- Fix tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexgurr%2Freact-conversation-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexgurr%2Freact-conversation-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexgurr%2Freact-conversation-form/lists"}