Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 616 Bytes

README.MD

File metadata and controls

26 lines (16 loc) · 616 Bytes

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})} />