Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Latest commit

 

History

History
21 lines (14 loc) · 384 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 384 Bytes

Cicero-UI - ContractEditor

Usage

npm install @accordproject/cicero-ui
import { ContractEditor } from '@accordproject/cicero-ui';

function storeLocal(editor) {
  localStorage.setItem('markdown-editor', editor.getMarkdown());
}

ReactDOM.render(<ContractEditor onChange={storeLocal} />, document.getElementById('root'));

Props

Available props incoming: