Sonner
An opinionated toast component for React.
About
Sonner is built and maintained by emilkowalski.
Installation
Run the following command:
Add the Toaster component
module RootLayout = {
@react.component
let make = (~children) =>
<html lang="en">
<head />
<body>
<main>{children}</main>
<Sonner />
</body>
</html>
}Usage
Sonner.toast("Event has been created"->React.string)Examples
Types
Description
Position
Use the position prop to change the position of the toast.
API Reference
See the Sonner API Reference for more information.