npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-formio-engine

v2.0.1

Published

Form engine with builder and renderer - formiojs-powered with React functional components

Readme

react-formio-engine

React functional components for form rendering and building, powered by formiojs. Drop-in replacement for @formio/react with no class components.

Install

npm install react-formio-engine

Quick Start

import { Form } from 'react-formio-engine';
import 'bootstrap/dist/css/bootstrap.css';
import 'formiojs/dist/formio.full.css';

const schema = {
  display: 'form',
  components: [
    { type: 'textfield', key: 'name', label: 'Name', validate: { required: true } },
    { type: 'email', key: 'email', label: 'Email' },
    { type: 'button', action: 'submit', label: 'Submit' },
  ],
};

function App() {
  return <Form src={schema} onSubmit={({ data }) => console.log(data)} />;
}

Exports

| Export | Description | |--------|-------------| | Form / FormRenderer | Renders a form from a JSON schema | | FormBuilder | Drag-and-drop form builder | | Formio | Formio singleton for advanced usage | | FormEngineProvider | Theme context provider | | ReactComponent | Base class for custom components (backward compat) | | baseEditForm | Base settings form for custom component editors | | createFormComponent | Factory for custom components (functional API) | | registerComponent | Register a custom component type | | removeSubmitFormio | Remove submit buttons from a form schema | | removeAutoFocusFormio | Remove autofocus from form components |

Form Renderer

import { Form } from 'react-formio-engine';

<Form
  src={formSchema}                    // Form JSON schema
  submission={{ data: { name: 'John' } }}  // Initial data
  options={{ noAlerts: true }}        // Formio options
  onSubmit={({ data }) => {}}        // Submit callback
  onChange={(submission) => {}}       // Change callback
  ref={formRef}                      // Access formRef.formio.submit()
/>

Form Builder

import { FormBuilder } from 'react-formio-engine';

<FormBuilder
  form={{ display: 'form', components: [] }}
  options={{
    builder: {
      basic: false,
      customBasic: {
        title: 'Fields',
        default: true,
        components: { textfield: true, email: true, textarea: true, button: true },
      },
    },
  }}
  onChange={(schema) => console.log(schema)}
/>

Custom Components

import { createFormComponent, Formio } from 'react-formio-engine';

const MyColorPicker = createFormComponent({
  type: 'colorpicker',
  label: 'Color Picker',
  icon: 'paint-brush',
  render: ({ value, onChange }) => (
    <input type="color" value={value || '#000'} onChange={(e) => onChange(e.target.value)} />
  ),
});

// Register for use in forms
Formio.registerComponent('colorpicker', MyColorPicker);

Theme Provider

import { FormEngineProvider, Form } from 'react-formio-engine';

<FormEngineProvider theme="antd">
  <Form src={schema} />
</FormEngineProvider>

Backward Compatibility

  • Supports the same JSON schema format as formio.js v4
  • ReactComponent and baseEditForm re-exported for existing custom components
  • Drop-in API compatible with @formio/react

Keywords

react formio form-builder form-renderer json-schema-form drag-and-drop form-engine formiojs functional-components

License

MIT