textarea component via yo-yo, automatically adjust height
npm install yo-yo-autogrow![npm]()
!API stability
!MIT Licensed
Wrapper UI Component made from yo-yo
``js
const autogrow = require('yo-yo-autogrow')
const el = yo
`with Choo
`js
const choo = require('choo')
const html = require('choo/html')
const autogrow = require('yo-yo-autogrow')const app = choo()
app.model({
state: {title: 'Sample with choo'}
})
const mainView = (state) => html
document.body.appendChild(tree)
`
$3
| Property | Default |
| :-- | :-- |
| placeholder |
'' |
| value | '' |
| name | '' |
| disabled | false |
| required | false |
| inputmode | '' |
| autocomplete | 'off' |$3
| Property | Default |
| :-- | :-- |
|
--AutogrowTextarea-border | 1px solid #ddd |
| --AutogrowTextarea-border-focus | 1px solid #9cc |
| --AutogrowTextarea-width | 100% |
| --AutogrowTextarea-padding | 4px 6px` |