@@ -39,6 +39,42 @@ const StoryWithHooks = args => {
39
39
called when snackbar should close, either because the close icon has been clicked, or
40
40
because the "closeTimeout" time for displaying the snackbar has expired.
41
41
</ p >
42
+ < p style = { { marginTop : '10px' } } >
43
+ < strong > Note: </ strong > Snackbar does not have an internal state. In order to open or close
44
+ it, "isOpen" prop must be used. Moreover "onHandleOpen" function will be
45
+ called when snackbar should close, either because the close icon has been clicked, or
46
+ because the "closeTimeout" time for displaying the snackbar has expired.
47
+ </ p >
48
+ < p style = { { marginTop : '10px' } } >
49
+ < strong > Note: </ strong > Snackbar does not have an internal state. In order to open or close
50
+ it, "isOpen" prop must be used. Moreover "onHandleOpen" function will be
51
+ called when snackbar should close, either because the close icon has been clicked, or
52
+ because the "closeTimeout" time for displaying the snackbar has expired.
53
+ </ p >
54
+ < p style = { { marginTop : '10px' } } >
55
+ < strong > Note: </ strong > Snackbar does not have an internal state. In order to open or close
56
+ it, "isOpen" prop must be used. Moreover "onHandleOpen" function will be
57
+ called when snackbar should close, either because the close icon has been clicked, or
58
+ because the "closeTimeout" time for displaying the snackbar has expired.
59
+ </ p >
60
+ < p style = { { marginTop : '10px' } } >
61
+ < strong > Note: </ strong > Snackbar does not have an internal state. In order to open or close
62
+ it, "isOpen" prop must be used. Moreover "onHandleOpen" function will be
63
+ called when snackbar should close, either because the close icon has been clicked, or
64
+ because the "closeTimeout" time for displaying the snackbar has expired.
65
+ </ p >
66
+ < p style = { { marginTop : '10px' } } >
67
+ < strong > Note: </ strong > Snackbar does not have an internal state. In order to open or close
68
+ it, "isOpen" prop must be used. Moreover "onHandleOpen" function will be
69
+ called when snackbar should close, either because the close icon has been clicked, or
70
+ because the "closeTimeout" time for displaying the snackbar has expired.
71
+ </ p >
72
+ < p style = { { marginTop : '10px' } } >
73
+ < strong > Note: </ strong > Snackbar does not have an internal state. In order to open or close
74
+ it, "isOpen" prop must be used. Moreover "onHandleOpen" function will be
75
+ called when snackbar should close, either because the close icon has been clicked, or
76
+ because the "closeTimeout" time for displaying the snackbar has expired.
77
+ </ p >
42
78
</ >
43
79
) ;
44
80
} ;
@@ -58,6 +94,7 @@ export const Snackbar: Story = {
58
94
description : { content : 'This is the description' } ,
59
95
closeIcon : { icon : ICONS . ICON_PLACEHOLDER } ,
60
96
secondaryActionContent : 'Link' ,
97
+ dataTestId : 'Snackbar' ,
61
98
themeArgs : themesObject [ themeSelected ] [ STYLES_NAME . SNACKBAR ] ,
62
99
} ,
63
100
parameters : {
0 commit comments