@lifesg/web-frontend-engine
TypeScript icon, indicating that this package has built-in type declarations

1.10.0 • Public • Published

LifeSG Web Frontend Engine npm version

Repository for the web frontend engine

The intention of frontend engine is to take out the heavy lifting of form development and offer a collection of common fields so engineers can develop forms quickly. The form will be defined through a JSON schema so non-engineers can customise the form as well.

Dependencies

Developers are expected to have the following packages installed:

  • @lifesg/react-design-system 2.5.0-canary.5
  • @lifesg/react-icons 1.2.0
  • react 17.0.2 or 18
  • react-dom 17.0.2 or 18
  • styled-components 5.3.5

Installation

npm i @lifesg/web-frontend-engine

Usage

import { FrontendEngine } from "@lifesg/web-frontend-engine";

const App = () => {
	return (
		<FrontendEngine
			data={{
				sections: {
					mySection: {
						uiType: "section",
						children: {
							myField: {
								uiType: "text-field",
								label: "My field",
							},
							submit: {
								uiType: "submit",
								label: "Submit",
							},
						},
					},
				},
			}}
		/>
	);
};

export default App;

Contributing to the repo

To contribute to the frontend engine

Readme

Keywords

Package Sidebar

Install

npm i @lifesg/web-frontend-engine

Weekly Downloads

568

Version

1.10.0

License

ISC

Unpacked Size

23.2 MB

Total Files

291

Last publish

Collaborators

  • govtech-mol
  • lifesg-ci
  • keithtxw