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. Install GolemUI and the Vanilla Components:
    Section titled “Install GolemUI and the Vanilla Components:”

    Choose the framework you want to use for your project.

    Terminal window
    npm i @golemui/core @golemui/react @golemui/react-vanilla --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 vanillaFieldLoaders = { ...Vanilla.vanillaFieldLoaders };
    const formDef = defineForm({
    form: [{ uid: '', kind: 'control', widget: 'textinput', path: 'username' }],
    });
    const formData = { username: 'golemui' };
    export function FormPage() {
    return (
    <div>
    <React.FormComponent
    formDef={formDef}
    data={formData}
    fieldLoader={vanillaFieldLoaders}
    />
    </div>
    );
    }
  4. You can now see your form rendered in the browser.