Skip to content

Commit

Permalink
feat(libs/form-builder): add form props (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpierre74 authored Jan 28, 2022
1 parent 52b43f9 commit 36c6154
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/form-builder/src/lib/formBuilder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export interface FormBuilderProps {
extraValidation?: ExtraValidation;
isLastStep?: boolean;
currentStepIndex?: number;
formProps?: { [key: string]: any };
debug?: boolean;
}

Expand All @@ -55,6 +56,7 @@ export function FormBuilder({
extraValidation,
isLastStep = true,
currentStepIndex = 0,
formProps = EMPTY_OBJECT,
debug = false
}: FormBuilderProps) {
const {
Expand Down Expand Up @@ -142,8 +144,8 @@ export function FormBuilder({
return (
<>
<form
aria-labelledby="form-label-element-id"
data-testid="form-builder"
{...formProps}
onSubmit={handleSubmit(onSubmit)}
>
<Stepper currentStepIndex={currentStepIndex}>
Expand Down

0 comments on commit 36c6154

Please sign in to comment.