Skip to content

default arguments not read for styleConfig prop for Stepper component #458

@amahi2001

Description

@amahi2001

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions