This repository has been archived by the owner on Jan 2, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 46
/
index.d.ts
49 lines (48 loc) · 1.75 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
export function ReactQueryDevtools(props: {
/**
* Set this true if you want the dev tools to default to being open
*/
initialIsOpen?: boolean
/**
* Use this to add props to the panel. For example, you can add className, style (merge and override default style), etc.
*/
panelProps?: React.DetailedHTMLProps<
React.HTMLAttributes<HTMLDivElement>,
HTMLDivElement
>
/**
* Use this to add props to the close button. For example, you can add className, style (merge and override default style), onClick (extend default handler), etc.
*/
closeButtonProps?: React.DetailedHTMLProps<
React.ButtonHTMLAttributes<HTMLButtonElement>,
HTMLButtonElement
>
/**
* Use this to add props to the toggle button. For example, you can add className, style (merge and override default style), onClick (extend default handler), etc.
*/
toggleButtonProps?: React.DetailedHTMLProps<
React.ButtonHTMLAttributes<HTMLButtonElement>,
HTMLButtonElement
>
/**
* The position of the React Query logo to open and close the devtools panel.
* Defaults to 'bottom-left'.
*/
position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
/**
* Use this to render the devtools inside a different type of container element for a11y purposes.
* Any string which corresponds to a valid intrinsic JSX element is allowed.
* Defaults to 'footer'.
*/
containerElement?: keyof JSX.IntrinsicElements
}): React.ReactElement
export function ReactQueryDevtoolsPanel(props: {
/**
* The standard React style object used to style a component with inline styles
*/
style?: React.CSSProperties
/**
* The standard React className property used to style a component with classes
*/
className?: string
}): React.ReactElement