-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathSnackbar.d.ts
30 lines (28 loc) · 1.02 KB
/
Snackbar.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
import {
Component,
ReactNode
} from 'react'
import {
SimpleBaseProps
} from './Base'
export interface SnackbarProps extends SimpleBaseProps<Snackbar> {
/** Show the Snackbar. */
show?: boolean,
/** A callback thats fired when the Snackbar closes. */
onClose?(): any,
/** A string or other renderable JSX to be used as the message body. */
message?: ReactNode,
/** Milliseconds to show the Snackbar for. */
timeout?: number,
/** Callback that fires when action is pressed. The actionText property must be set to use this. */
actionHandler?(): any,
/** Label for the action button. */
actionText?: ReactNode,
/** Lets the Snackbar text overflow onto multiple lines. */
multiline?: boolean,
/** Places the action underneath the message text. */
actionOnBottom?: boolean,
/** Whether or not the Snackbar dismisses on the action press. */
dismissesOnAction?: boolean
}
export class Snackbar extends Component<SnackbarProps> { }