Form JSON

Start of documentation content

The Formally React SDK allows developers to make forms in JSON via the data prop.

The JSON format

import type { Formally, FormallyData, presets_en } from 'formally';

const data: FormallyData = {
  rootId: '__root',
  items: {
    myId: {
      id: 'myId',
      type: 'FreeText',
      ...presets_en.FreeText,
    },
  },
};

const Form = () => <Formally data={data} />;