react-form-stepper
react-form-stepper copied to clipboard
default arguments not read for styleConfig prop for Stepper component
when adding the following prop values for styleConfig
in the Stepper
component:
tyleConfig={{ size: 50 }}
I get the following TS error
type '{ size: number; }' is missing the following properties from type 'StepStyleDTO': activeBgColor, activeTextColor, completedBgColor, completedTextColor, and 6 more.ts(2740)
StepperTypes.d.ts(9, 5): The expected type comes from property 'styleConfig' which is declared here on type 'IntrinsicAttributes & StepperProps'
This is different from the example as it seems in the example the default key/values for the prop is read ?
Having this same issue as well did you find a workaround?
Having this same issue as well did you find a workaround?
Yea I just provided all of the arguments it complained it was missing:
where I provided an object with the defined styles: