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 },
});
| Part | What it draws |
|---|---|
Section | the card around a section |
StepBar | the steps, with your header |
StepTitle | a heading above each step |
ActionBar | back, save, next and submit |
MapPoint | picking a point for an address |
MapView | the point, in the review |
Debugger | the 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.