Skip to content

Commit 4dbc051

Browse files
committed
Fix #7775: Stepper fix typescript add children
1 parent e900065 commit 4dbc051

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

components/lib/stepper/StepperBase.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ export const StepperBase = ComponentBase.extend({
138138
linear: false,
139139
onChangeStep: null,
140140
start: null,
141-
end: null
141+
end: null,
142+
children: undefined
142143
},
143144
css: {
144145
classes,

components/lib/stepper/stepper.d.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export interface StepperChangeEvent {
9696
* Defines valid properties in Stepper component.
9797
* @group Properties
9898
*/
99-
export interface StepperProps {
99+
export interface StepperProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> {
100100
/**
101101
* Active step index of stepper.
102102
* @defaultValue 0
@@ -143,6 +143,11 @@ export interface StepperProps {
143143
* @defaultValue false
144144
*/
145145
unstyled?: boolean;
146+
/**
147+
* Used to get the child elements of the component.
148+
* @readonly
149+
*/
150+
children?: React.ReactNode | undefined;
146151
}
147152

148153
/**

0 commit comments

Comments
 (0)