@logo-elements/notification
A web component for providing feedback to the user.
<logo-elements-notification opened position="middle" duration="-1"></logo-elements-notification>
<script>
const notification = document.querySelector('logo-elements-notification');
notification.renderer = function (root) {
root.textContent = 'Your work has been saved';
};
</script>
Installation
Install the component:
npm i @logo-elements/notification -s
Once installed, import the component in your application:
import '@logo-elements/notification';