0.11: Web Support
New Features
Web Support
As of 0.11
, Burnt now wraps sonner
on Web. Sonner is a great Toast library by Emil Kowalski.
You'll need to import { Toaster } from 'burnt/web'
and render the <Toaster />
at the root of your website for burnt
to work on Web. You shouldn't import it on native.
// _app.tsx
import { Toaster } from "burnt/web";
function MyApp({ Component, pageProps }) {
return (
<>
<Component {...pageProps} />
<Toaster position='bottom-right' />
</>
);
}
To configure your Toaster
, please reference the sonner
docs.