weightless
weightless copied to clipboard
queue-snackbar missing on npm
queue-snackbar missing when installing weightless from npm.
queue-snackbar is not a WC but a method :
import { queueSnackbar } from "weightless/snackbar";
queueSnackbar({
container: document.body,
fixed: true,
template: html`
What you want
`
});
correct is a method, but is not there. It seems to be structured as "showSnackbar" which has its corresponding implementation in a single file.
This is from the snackbar demo page.
This is from the index.d
Hi,
right queue-snackbar is not exported by index.d.ts so you have to import it as
import { queueSnackbar } from "weightless/snackbar/queue-snackbar";
i guess the maintener choose to not export it by default.
Not an issue.
That is the issue, queue-snackbar.js is missing from the NPM install. This is the tree from the npm intallation
Sorry i misunderstood :/
https://github.com/andreasbm/weightless/pull/72