Skip to content

Commit 0b9b7e6

Browse files
update types : TabComponentProps interface
can extends PanelProps
1 parent 811cbbd commit 0b9b7e6

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

index.d.ts

+3-6
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,16 @@ export interface IconProps {
2020
className: string;
2121
role: string;
2222
}
23-
export interface TabComponentProps {
23+
export interface PanelProps {
2424
id: string;
2525
isSelected: boolean;
2626
api: Instance;
27+
}
28+
export interface TabComponentProps extends PanelProps {
2729
tabProps: TabProps;
2830
iconProps?: IconProps;
2931
children: React.ReactNode;
3032
}
31-
export interface PanelProps {
32-
id: string;
33-
isSelected: boolean;
34-
api: Instance;
35-
}
3633
export interface Options {
3734
/** * default value is "ltr"*/
3835
direction?: 'rtl' | 'ltr';

0 commit comments

Comments
 (0)