File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ ## Button
2
+
3
+ The base Snackbar component.
4
+
5
+ ### Properties
6
+ | Name | Type | Default | Description |
7
+ | :-----| :-----| :-----| :-----|
8
+ | ` children ` | ` Any ` | ` null ` | All children components to be rendered inside the Snackbar |
9
+ | ` timeout ` | ` Number ` | 2000 | Timeout to auto hide the snackbar |
10
+ | ` autoClose ` | ` Boolean ` | true | Prop to decide whether the snackbar should close automatically after the given timeout or not |
11
+ | ` onClose ` | ` function ` | null | The callback function to be called when the snackbar closes |
12
+ | ` position ` | ` String ` | ` bottom ` | The position at which the snackbar should be show. The possible values are ` top ` , ` bottom ` |
13
+
14
+ ### Theme
15
+
16
+ | Name | Description|
17
+ | :---------| :-----------|
18
+ | ` snackbar ` | Class used for the snackbar element.|
19
+ | ` snackbarWrapper ` | Class used for snackbar wrapper element |
20
+
21
+ ### Usage
22
+
23
+ ```
24
+ <div>
25
+ <Snackbar
26
+ active={this.state.showIndefiniteSnackbar}
27
+ onClose={this.handleSnackClose}
28
+ autoClose={false}>
29
+ <span>This is a indefinite snackbar.</span>
30
+ </Snackbar>
31
+ </div>
32
+ ```
You can’t perform that action at this time.
0 commit comments