-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from KasperskyLab/feature/forward-ref-scrollbar
feat: forward ref to scrollbar & export from root
- Loading branch information
Showing
5 changed files
with
44 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
packages/kaspersky-components/src/scrollbar/component/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { ScrollbarProps as defaultScrollbarProps } from 'react-custom-scrollbars-2' | ||
import { Ref } from 'react' | ||
import Scrollbars, { ScrollbarProps as defaultScrollbarProps } from 'react-custom-scrollbars-2' | ||
import { ScrollbarThemeProps, ScrollbarToViewProps } from '../types' | ||
|
||
export type ScrollbarProps = defaultScrollbarProps & ScrollbarThemeProps | ||
export type ScrollbarProps = defaultScrollbarProps & ScrollbarThemeProps & { ref?: Ref<Scrollbars> } | ||
|
||
export type ScrollbarViewProps = ScrollbarToViewProps<ScrollbarProps> |