Closed yalesnikov closed 1 month ago
Hi @yalesnikov
All documentation are in the repository INDEX.md and the snackbar docs is here SNACKBAR.md (see the trigger section). The JS file of Beer CSS is optional, basically it handles dynamic theme and triggers (using data-ui
attribute). Use it If you want to write zero/less JS in your app (is highly recomended).
1) Yes, JS file is optional (but I recommend to install it globally) 2) Yes, JS file is optional (but I recommend to install it globally) 3) Yes, see trigger section of snackbar
Some bundlers can have different ways to handle CSS/JS files. IMO I think this is not a problem with Beer CSS itself, because it is just a regular CSS and JS file (nothing special inside it). At moment is hard for us to have a doc for each bundler (there are many outside).
@yalesnikov Sorry I don't know your bundler/stack, maybe another user can help you with this.
Hello @yalesnikov, have you tried this configuration here ? https://github.com/beercss/beercss/issues/104
Hi, can you help me to user Beer CSS with Angular?
When I added import to script in angular.json I had some errors in browser (compilation went successful). To avoid this errors I did this: in angular.json:
in index.html:
If script include in main bundle then error appears. My solution work success.
In angular component I write this:
BeerCSS very interesting library but it has less examples and only basic documentation.