handlebars-textbox
v1.0.4
Published
Powered textbox for editing handlebars code in a visual nice way.
Downloads
6
Maintainers
Readme
handlebars-textbox
Installation
npm install handlebars-textbox --save
add the css dependencies
<link rel="stylesheet" href="https://static.ux.cimpress.io/mcp-ux-css/1.4/development/1.4.8/css/mcp-ux-css.min.css" charset="utf-8" integrity="sha256-N7q2V/oEomo+XXIEsLN2JsmpMoGvO8EgGC9eWPjx8Ec=" crossorigin="anonymous">
<link rel="stylesheet" href="//cloud.typography.com/7971714/6011752/css/fonts.css"/>
Import
import { HandlebarsTextbox } from 'handlebars-textbox'
Use
<HandlebarsTextBox
value={this.state.value}
onChange={(value) => this.setState({value})} />