TkxToast
import { TkxToastProvider, useToast } from 'tekivex-ui';
// Wrap your app once<TkxToastProvider position="top-right"> <App /></TkxToastProvider>
// Then fire toasts imperatively from any descendantfunction SaveButton() { const { toast } = useToast(); return ( <TkxButton onClick={() => toast({ title: 'Saved', variant: 'success' }) }> Save </TkxButton> );}Live demo
Section titled “Live demo”4 variants
Section titled “4 variants”Click a button to fire a toast (top-right by default)
Accessibility
Section titled “Accessibility”- Toasts render with
role="status"+aria-live="polite" - Errors use
role="alert"+aria-live="assertive" - Dismiss button is keyboard-reachable
- Respects
prefers-reduced-motion(no slide animation when set)
Source
Section titled “Source”For the full interactive sandbox, open the playground.