Toast

Toast

Non-blocking floating feedback notifications with auto-dismiss timers and semantic presets.

Interactive Toast Feedback

Portal-rendered notification stack with auto-dismiss timers, action buttons, and status icons.

Quick Import

Example.tsxtsx
1import { toast, Toaster, Button } from "@rekodo/react";
2
3export function Example() {
4 return (
5 <>
6 <Toaster position="bottom-right" />
7 <Button onClick={() => toast.success("Synced", "Saved to playlist.")}>
8 Notify
9 </Button>
10 </>
11 );
12}

API Reference

Props accepted by this component.

PropTypeDefaultDescription
toast.show(opts)method-Display a custom notification object ({ title, description, variant, duration }).
toast.success / error / info / warninghelpers-Shorthand trigger functions with semantic icons.
Toaster.position"bottom-right" | "bottom-left" | "top-right" | "top-left" | "bottom-center""bottom-right"Viewport anchor placement.