|
7 | 7 |
|
8 | 8 | ## Properties
|
9 | 9 |
|
10 |
| -| Property | Attribute | Description | Type | Default | |
11 |
| -| ------------- | -------------- | -------------------------------------------------------------------------------------------- | --------------------------------------------- | ----------- | |
12 |
| -| `actionLabel` | `action-label` | Text for the Call-to-Action link. | `string` | `undefined` | |
13 |
| -| `description` | `description` | Text on the snackbar. | `string` | `undefined` | |
14 |
| -| `duration` | `duration` | How long is snackbar shown. Default value is 5000 ms. | `number` | `5000` | |
15 |
| -| `hasAction` | `has-action` | Whether the snackbar has a Call-to-Action. Per default, it is false. | `boolean` | `false` | |
16 |
| -| `opened` | `opened` | Whether the snackbar is currently visible. Set to true to display the snackbar. | `boolean` | `false` | |
17 |
| -| `timed` | `timed` | Whether snackbar is show for limited time. Default is true. Error snackbars cannot be timed. | `boolean` | `true` | |
18 |
| -| `type` | `type` | The type of snackbar. Default is info. | `"error" \| "info" \| "success" \| "warning"` | `'info'` | |
19 |
| -| `width` | `width` | Width of the snackbar in px, Default value is 270px. | `string` | `'270px'` | |
| 10 | +| Property | Attribute | Description | Type | Default | |
| 11 | +| ------------- | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------- | ----------- | |
| 12 | +| `actionLabel` | `action-label` | Text for the Call-to-Action link. | `string` | `undefined` | |
| 13 | +| `description` | `description` | Text on the snackbar. | `string` | `undefined` | |
| 14 | +| `duration` | `duration` | How long is snackbar shown. Default value is 5000 ms. | `number` | `5000` | |
| 15 | +| `hasAction` | `has-action` | Whether the snackbar has a Call-to-Action. Per default, it is false. | `boolean` | `false` | |
| 16 | +| `opened` | `opened` | Whether the snackbar is currently visible. Set to true to display the snackbar. | `boolean` | `false` | |
| 17 | +| `timed` | `timed` | Whether snackbar is show for limited time. Default is true. Error snackbars cannot be timed. | `boolean` | `true` | |
| 18 | +| `type` | `type` | The type of snackbar. Default is info. | `"error" \| "info" \| "success" \| "warning"` | `'info'` | |
| 19 | +| `width` | `width` | Width of the snackbar can be specified in px. If not provided, the default value is auto, which will adjust the width to fit the content. | `string` | `undefined` | |
20 | 20 |
|
21 | 21 |
|
22 | 22 | ## Events
|
|
0 commit comments