-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOffcanvas.d.ts
38 lines (35 loc) · 1.12 KB
/
Offcanvas.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
import * as React from 'react';
import { CSSModule } from './utils';
import { FadeProps } from './Fade';
export type Direction = 'start' | 'end' | 'bottom' | 'top';
export interface OffcanvasProps extends React.HTMLAttributes<HTMLElement> {
[key: string]: any;
autoFocus?: boolean;
backdrop?: boolean | 'static';
backdropClassName?: string;
backdropTransition?: FadeProps;
container?: string | HTMLElement | React.RefObject<HTMLElement>;
contentClassName?: string;
cssModule?: CSSModule;
fade?: boolean;
innerRef?: React.Ref<HTMLElement>;
isOpen?: boolean;
keyboard?: boolean;
labelledBy?: string;
offcanvasClassName?: string;
offcanvasTransition?: FadeProps;
onClosed?: () => void;
onEnter?: () => void;
onExit?: () => void;
onOpened?: () => void;
direction?: Direction;
returnFocusAfterClose?: boolean;
scrollable?: boolean;
toggle?: React.KeyboardEventHandler<any> | React.MouseEventHandler<any>;
trapFocus?: boolean;
unmountOnClose?: boolean;
wrapClassName?: string;
zIndex?: number | string;
}
declare class Offcanvas extends React.Component<OffcanvasProps> {}
export default Offcanvas;