mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 06:27:19 +01:00
16 lines
352 B
JavaScript
16 lines
352 B
JavaScript
import { h } from 'preact';
|
|
|
|
export default function(props) {
|
|
return (
|
|
<label>
|
|
{props.text}
|
|
<input
|
|
class={props.name}
|
|
type="text"
|
|
placeholder={props.placeholder}
|
|
onchange={props.onchange.bind(null, props.name)}
|
|
/>
|
|
</label>
|
|
);
|
|
}
|