react-survey-editor
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

React Survey Editor

GitHub license Build Npm Npm

Live Demo

Install

yarn add react-survey-editor

Build

yarn lib

Usage

With Redux

import React from 'react'
import SurveyEditor from 'react-survey-editor'
 
const App = ({ onExport }) => (
 <SurveyEditor onExport={onExport} />
)

To dissociate ids generated by the library and those you bring, generated ids are prefixed by '@@'. It allows us to not provide a 'onAdd' method to avoid several server calls.

API

Name Type Default Required Description
onExport (string) => void () => { } false Function called when user click on Save button.
initialValue object See false Initial survey value
locale string "enUS" false Ant design locale language

TODO:

  • Add i18n translation

All contributions are welcome.

Readme

Keywords

none

Package Sidebar

Install

npm i react-survey-editor

Weekly Downloads

182

Version

1.0.7

License

MIT

Last publish

Collaborators

  • exced