Skip to content

Commit ce3f9c0

Browse files
committed
feat(types): update DualScrollSyncProps and DualScrollSyncLabelProps to include style and className
1 parent 2a492e1 commit ce3f9c0

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

lib/components/DualScrollSync/DualScrollSync.types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type DualScrollSyncOptions = {
1818

1919
export type DualScrollSyncItem = PropsWithChildren<DualScrollSyncOptions>;
2020

21-
export type DualScrollSyncProps = PropsWithChildren<{
21+
export type DualScrollSyncProps = PropsWithChildren<DualScrollSyncStyleProps> & {
2222
/**
2323
* Unique identifier for the DualScrollSync component. (Optional)
2424
* @default 'dual-scroll-sync'
@@ -41,7 +41,7 @@ export type DualScrollSyncProps = PropsWithChildren<{
4141
* @default () => {}
4242
*/
4343
onItemClick?: (activeKey: string) => void;
44-
}>;
44+
};
4545

4646
export type DualScrollSyncType = FC<DualScrollSyncProps> & {
4747
Nav: FC<DualScrollSyncNavProps>;
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
import type { PropsWithChildren } from 'react';
22

3-
export type DualScrollSyncLabelProps = PropsWithChildren;
3+
import type { DualScrollSyncStyleProps } from '../DualScrollSync.types';
4+
5+
export type DualScrollSyncLabelProps = PropsWithChildren<DualScrollSyncStyleProps>;

0 commit comments

Comments
 (0)