File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -39,27 +39,23 @@ const buttons = [
39
39
}
40
40
},
41
41
{
42
- name: ' YELLOW ' ,
43
- code: ` toast.push('Warning !', {
42
+ name: ' RED ' ,
43
+ code: ` toast.push('Danger !', {
44
44
theme: {
45
- '--toastBackground': '#ECC94B ',
46
- '--toastProgressBackground': '#B7791F '
45
+ '--toastBackground': '#F56565 ',
46
+ '--toastProgressBackground': '#C53030 '
47
47
}
48
48
})` ,
49
49
run : () => {
50
- toast .push (' Warning !' , { theme: { ' --toastBackground' : ' #ECC94B ' , ' --toastProgressBackground' : ' #B7791F ' } })
50
+ toast .push (' Danger !' , { theme: { ' --toastBackground' : ' #F56565 ' , ' --toastProgressBackground' : ' #C53030 ' } })
51
51
}
52
52
},
53
53
{
54
- name: ' RED' ,
55
- code: ` toast.push('Error!', {
56
- theme: {
57
- '--toastBackground': '#F56565',
58
- '--toastProgressBackground': '#C53030'
59
- }
60
- })` ,
54
+ name: ' RICH HTML' ,
55
+ code: ` toast.push(\` <strong>You won the jackpot!</strong><br>
56
+ Click <a href="#" target="_blank">here</a> for details! 😛\` )` ,
61
57
run : () => {
62
- toast .push (' Error! ' , { theme : { ' --toastBackground ' : ' #F56565 ' , ' --toastProgressBackground ' : ' #C53030 ' } } )
58
+ toast .push (' <strong>You won the jackpot!</strong><br>Click <a href="#" target="_blank">here</a> for details! 😛 ' )
63
59
}
64
60
},
65
61
{
You can’t perform that action at this time.
0 commit comments