/*In the ts file:*/
this.snackBar.openFromComponent(SnackComponent, {
data: {
message: 'Hello, snackbar!'
},
duration: 2000,
panelClass: ['snackbar'] /*This is the class you'll refer to*/
});
/*In the css file:*/
.snackbar {
background: lightgreen;
}
Code Example |
---|
Css :: losange css |
Css :: css multiple classes |
Css :: scss color black white |
Css :: css accent |
Css :: deobfuscate css |
Css :: remove text color from link |
Css :: keyframes scss |
Css :: scss examples |
Css :: css stands for |
Css :: css font style |
Css :: vertical align h1 inside div |
Css :: css border top linear gradient |
Css :: css border with 8 values |
Css :: how to divide flex space equally |
Css :: background color |
Css :: change image link css |
Css :: first-letter css |
Css :: how to add grow effect animation button in css |
Css :: CSS fluid type sizing based on viewport |
Css :: Install Golang On Linux (Ubuntu) |
Css :: lando expose database port |
Css :: sliding button css |
Css :: css() multiple |
Css :: clip path css |
Css :: css gap |
Css :: border-radius order |
Css :: 3d rotating text css |
Css :: the box model |
Css :: css-loader |
Css :: display block |