VelocityToast

A toast that enters with velocity and settles, with a progress indicator that responds naturally — pauses on hover, resumes with no jump, and eases slightly in the final 10% so dismissal feels intentional.

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/velocity-toast

API Reference

PropTypeDefaultDescription
openbooleanundefinedWhether the toast is visible
onDismiss() => voidundefinedCalled when toast is dismissed (auto or manual)
titlestringundefinedToast title
descriptionstringundefinedSecondary description
durationnumber4000Auto-dismiss duration in ms
variant'default' | 'success' | 'warning' | 'error' | 'info''default'Visual tone
positionVelocityToastPosition'bottom-center'Screen placement
showProgressbooleantrueShow countdown progress bar