react-form-stepper icon indicating copy to clipboard operation
react-form-stepper copied to clipboard

default arguments not read for styleConfig prop for Stepper component

Open amahi2001 opened this issue 2 years ago • 2 comments

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'

image

This is different from the example as it seems in the example the default key/values for the prop is read ?

amahi2001 avatar Dec 21 '22 22:12 amahi2001

Having this same issue as well did you find a workaround?

Aycom366 avatar Jan 10 '23 13:01 Aycom366

Having this same issue as well did you find a workaround?

Yea I just provided all of the arguments it complained it was missing: image where I provided an object with the defined styles: image

amahi2001 avatar Jan 10 '23 16:01 amahi2001