minthril-form

1.3.1 • Public • Published

minthril-form

A form ui library for minthril.

Live demo

Screenshot

Screenshot of Demo

Example Usage

const {createForm, createTextInput } = require('minthril-form');

h(
  'div',
  { class: 'someForm' },
  createForm(minthril, {
    fields: [{
      name: 'firstName',
      label: 'First Name',
      component: createTextInput,
      autoFocus: true,
      initialValue: 'Joe'
    }, {
      name: 'lastName',
      label: 'Last Name',
      component: createTextInput,
      initialValue: 'Bloggs'
    }
  )
)

Readme

Keywords

none

Package Sidebar

Install

npm i minthril-form

Weekly Downloads

78

Version

1.3.1

License

ISC

Unpacked Size

358 kB

Total Files

18

Last publish

Collaborators

  • markwylde