@trycourier/courier-ui-toast
v2.1.0
Published
Toast components for the Courier web UI
Readme
@trycourier/courier-ui-toast
Toast notification components for the Courier web UI.
Using React? Use the @trycourier/courier-react package.
Installation
npm install @trycourier/courier-ui-toastUsage
Check out the Courier documentation for a full guide to Courier Toast Web Components.
Examples
courier-toast
<body>
<courier-toast id="toast"></courier-toast>
<script type="module">
import { Courier } from '@trycourier/courier-ui-toast';
// Generate a JWT for your user (do this on your backend server)
const jwt = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'; // Replace with actual JWT
// Authenticate the user
Courier.shared.signIn({
userId: $YOUR_USER_ID,
jwt: jwt
});
</script>
</body>Share feedback with Courier
Have an idea or feedback about our SDKs? Let us know!
Open an issue: Courier Web Issues
