Skip to content

Getting Started

GolemUI is a blazing fast JavaScript library for building dynamic forms from JSON files or other data sources. It provides a Free and PRO set of UI components with support for React, Angular, Vue and Lit.

Creating a dynamic form has never been this easy.

  1. Choose the framework you want to use for your project.

    Terminal window
    npm i @golemui/core @golemui/react @golemui/gui-react --save
  2. You can load the CSS file directly in your HTML or import it in your Sass/CSS file.

    @import '@golemui/core/styles/index.css';
  3. Create a component that renders a form using the FormComponent.

    const formDef = golemForm().create({
    form: [{ kind: 'input', type: 'textinput', path: 'username' }],
    });
    const formData = { username: 'golemui' };
    export function FormPage() {
    return (
    <div>
    <React.FormComponent
    formDef={formDef}
    data={formData}
    widgetLoaders={GuiReact.widgetLoaders}
    />
    </div>
    );
    }

    Create a JSON file with your form definition:

    {
    "form": [
    {
    "kind": "input",
    "type": "textinput",
    "path": "username"
    }
    ]
    }

    Then load and render it in your framework. See the Integration section for framework-specific setup.

  4. You can now see your form rendered in the browser.