docs-embedded-react
v1.0.4
Published
Linte Docs - Embeded Form Component
Downloads
18
Readme
docs-embeded-react
[![npm version][npmv-image]][npmv-url]
Linte Docs - Embeded Form React Component
Basic Usage
import React from 'react'
import { render } from 'react-dom'
import DocsForm from 'docs-embeded-react';
function App() {
return (
<div className="App">
<DocsForm
hash="0bb8c319-b2d2-44e4-be6a-42cb80481094"
variables={{ 'uLgYyg8g7EnrRT4cL': 'Guilherme' }} // fill by ID
variablesbyName={{ 'Sobrenome': 'Morais'}} // fill by name
onSave={({ id, variables, }) => console.log(id, variables) } // saved variables
onLoad={({ variables }) => console.log() } // all variables
/>
</div>
);
}
render(App, document.getElementById('root'))
Live Examples
Installation
$ npm install docs-embeded-react --save