17 lines
306 B
JavaScript
17 lines
306 B
JavaScript
|
const h = require('flimflam/h')
|
||
|
const classObject = require('../common/class-object')
|
||
|
|
||
|
module.exports = (name, placeholder, value, classes) => {
|
||
|
return h('input.max-width-2', {
|
||
|
props: {
|
||
|
type: 'number'
|
||
|
,
|
||
|
, name
|
||
|
, placeholder
|
||
|
, value
|
||
|
}
|
||
|
, class: classObject(classes)
|
||
|
})
|
||
|
}
|
||
|
|