React Survey Editor
Live Demo
Install
yarn add react-survey-editor
Build
yarn lib
Usage
With Redux
const App = <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.