Modal Form

Component form using a modal window.

Props

title String

Form title.

default: ''

form Object

Form properties. See Form component.

default: {}

Use case example

var modal = React.createFactory(ModalForm);
var modalProps = {
  id: 'custom-modal-form',
  title: 'Modal Form',
  form: {
    inputs: {
      name: {
        label: "Product Name"
      },
      price: {
        label: "Price",
        component: "masked",
        maskType: "currency"
      }
    }
  }
};

ReactDOM.render(modal(modalProps), document.getElementById('custom-modal-form-container'));