[TypeScript] Orientation in StepButton should be optional #9782
Labels
component: stepper
This is the name of the generic UI component, not the React module!
good first issue
Great for first contributions. Enable to learn the contribution process.
typescript
Expected Behavior
Orientation in StepButton's props should be optional as document described.
Current Behavior
Orientation is a required prop, cause type missmatch.
Steps to Reproduce (for bugs)
ERROR in /xxx/xx.tsx
[tsl] ERROR in /xxx/xx.tsx(240,29)
TS2322: Type '{ children: string[]; }' is not assignable to type 'IntrinsicAttributes & StepButtonProps & { children?: ReactNode; }'.
Type '{ children: string[]; }' is not assignable to type 'StepButtonProps'.
Property 'orientation' is missing in type '{ children: string[]; }'.
Context
Your Environment
The text was updated successfully, but these errors were encountered: