mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 Merge PR #46645 [@types/react-custom-scrollbars] feat: add style props of react-custom-scrollbars by @RaoHai
* feat: add style props of react-custom-scrollbars * feat: add tests Co-authored-by: raohai.rh <raohai.rh@antgroup.com>
This commit is contained in:
parent
26091d6853
commit
62aa131676
2
types/react-custom-scrollbars/index.d.ts
vendored
2
types/react-custom-scrollbars/index.d.ts
vendored
@ -47,6 +47,8 @@ export interface ScrollbarProps extends React.HTMLProps<Scrollbars> {
|
||||
autoHeight?: boolean;
|
||||
autoHeightMin?: number | string;
|
||||
autoHeightMax?: number | string;
|
||||
|
||||
style?: React.CSSProperties;
|
||||
}
|
||||
|
||||
export class Scrollbars extends React.Component<ScrollbarProps> {
|
||||
|
||||
@ -3,7 +3,7 @@ import { render } from 'react-dom';
|
||||
import Scrollbars from "react-custom-scrollbars"
|
||||
|
||||
render(
|
||||
<Scrollbars>
|
||||
<Scrollbars style={{ width: 500 }}>
|
||||
<div>Test</div>
|
||||
</Scrollbars>,
|
||||
document.getElementById("main")
|
||||
|
||||
2
types/react-custom-scrollbars/v3/index.d.ts
vendored
2
types/react-custom-scrollbars/v3/index.d.ts
vendored
@ -39,6 +39,8 @@ export interface ScrollbarProps extends React.HTMLProps<Scrollbars> {
|
||||
thumbSize?: number;
|
||||
thumbMinSize?: number;
|
||||
universal?: boolean;
|
||||
|
||||
style?: React.CSSProperties;
|
||||
}
|
||||
|
||||
export class Scrollbars extends React.Component<ScrollbarProps> {
|
||||
|
||||
@ -3,7 +3,7 @@ import { render } from 'react-dom';
|
||||
import Scrollbars from "react-custom-scrollbars"
|
||||
|
||||
render(
|
||||
<Scrollbars>
|
||||
<Scrollbars style={{ width: 500 }}>
|
||||
<div>Test</div>
|
||||
</Scrollbars>,
|
||||
document.getElementById("main")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user