docs-embeded-react
TypeScript icon, indicating that this package has built-in type declarations

0.0.21 • Public • Published

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

Package Sidebar

Install

npm i docs-embeded-react

Weekly Downloads

0

Version

0.0.21

License

MIT

Unpacked Size

61.4 kB

Total Files

14

Last publish

Collaborators

  • 6uimorais