3.0.3 • Published 6 years ago
the-sketch v3.0.3
the-sketch
Hand writing of the-component
Installation
$ npm install the-sketch --save
Usage
'use strict'
import React from 'react'
import { TheSketch, TheSketchStyle } from 'the-sketch'
class ExampleComponent extends React.PureComponent {
render () {
return (
<div>
<TheSketchStyle/>
<TheSketch/>
<hr/>
<TheSketch width={'25vw'}
height={'100px'}
penColor={'#38E'}
backgroundColor={'rgba(255,255,255,0.8)'}
/>
</div>
)
}
}
export default ExampleComponent
Components
TheSketch
Hand writing of the-component
Props
Name | Type | Description | Default |
---|---|---|---|
height | union | 150 | |
lineWidth | number | 3 | |
onBegin | func |
| |
onEnd | func |
| |
onPad | func | null | |
width | union | 150 | |
backgroundColor | '#FFF' | ||
penColor | '#555' |
TheSketchStyle
Style for TheSketch
Props
Name | Type | Description | Default |
---|---|---|---|
options | object | Style options | {} |
License
This software is released under the MIT License.