Skip to content

0.11: Web Support

Compare
Choose a tag to compare
@nandorojo nandorojo released this 08 May 12:40
· 38 commits to master since this release

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.

Video

burnt-example.-.8.May.2023.mp4