Parts

Parts

Swap a part of the form for your app's own component.

Swapping a part

The engine draws with Nuxt UI and theme colours only, so it takes your app's colours, font and radius. When you need more, pass your own part.

installFormEngine({
  http,
  files,
  errorMessage,
  parts: { Section: MySection, ActionBar: MyActions },
});
PartWhat it draws
Sectionthe card around a section
StepBarthe steps, with your header
StepTitlea heading above each step
ActionBarback, save, next and submit
MapPointpicking a point for an address
MapViewthe point, in the review
Debuggerthe answers and payload, in development

Each part's props are exported from #form-engine.

Corners and sticky bars

Corners follow --ui-radius. Set --form-engine-radius-card and --form-engine-radius-item to change them alone, and --form-engine-ease and --form-engine-duration to change how sections open and close. Sticky parts stop below --ui-header-height.