We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
An element that consists of an input field and button when pressed will return the value submitted.
var bel = require('bel') module.exports = function (onsubmit) { var input = bel`<input type="text" value="" />` return bel`<form onsubmit=${function (e) { e.preventDefault() onsubmit(input.value) }}> <label>Your Name:</label> ${input} <button type="submit">submit</button> </form>` }