@embertoast/react
v0.1.0
Published
Headless-first toast primitive for React: toast() + <Toaster/>. Accessible, promise-aware, zero runtime deps.
Maintainers
Readme
@embertoast/react
Headless-first toast primitive for React. Accessible, promise-aware, swipe-dismissable, zero runtime dependencies. Bring your own markup, or use the polished default.
npm i @embertoast/reactimport { toast, Toaster } from "@embertoast/react";
import "@embertoast/react/styles.css"; // omit if you render headless
function App() {
return (
<>
<button onClick={() => toast.success("Saved")}>Save</button>
<Toaster position="bottom-right" />
</>
);
}toast() is a standalone function backed by an external store — call it from anywhere. <Toaster/> is the single subscriber that renders. Full API, options, and the accessibility model are in the repository docs.
