@rcarls/rc-snackbar
v0.5.0
Published
Snackbar live-region host for brief status messages and optional actions.
Downloads
622
Readme
@rcarls/rc-snackbar
Live-region host for brief status messages and optional actions.
<rc-snackbar id="snackbar"></rc-snackbar>
<script type="module">
import '@rcarls/rc-snackbar/define';
document.querySelector('#snackbar').show({
message: 'Recipe saved',
actionLabel: 'Undo',
});
</script>