Snackbar API
API reference docs for theSnackbar
component. For examples and details on the usage of this component, visit the component demo page.
Props
Props | Type | Description | Default |
---|---|---|---|
|
| Displays the label/title | _ |
|
| Displays the description | _ |
|
| Represents the variants of the component | _ |
|
| To prompt users to take specific actions | _ |
|
| Represents the text for the action button | _ |
|
| Callback invoked when the action button is clicked | _ |
|
| Callback invoked when the close button is clicked | _ |
|
| Controls the visibility of the Snackbar | _ |
|
| Callback invoked when the Snackbar is auto-dismissed. | _ |
|
| To anchor the position of the Snackbar | _ |
|
| To adjust the vertical & horizontal position of the Snackbar. Value is computed in pixels |
|
|
| To auto-dismiss the Snackbar after a certain time. Specify the time in milliseconds |
|