nylas-notification
Overview
The nylas-notification
component is a UI component that displays notifications.
Version | 1.3.3 |
Install (React) | npm install @nylas/react |
Import (React) | import { NylasNotification } from '@nylas/react'; |
Import (CDN) | <script type="module">
import { defineCustomElement } from "https://cdn.jsdelivr.net/npm/@nylas/web-elements@latest/dist/cdn/nylas-notification/nylas-notification.es.js";
defineCustomElement();
</script> |
Example
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
allowedCategories | string[] | ['component', 'api', 'validation', 'invalid_session'] | ||
ttl | The time-to-live for notifications in milliseconds. Set to ‘none’ to disable auto-dismissal. | "none" | number | 5000 |
Built with StencilJS