Feedback
Toast-style feedback notification with slide-in/out animation. Auto-dismisses after specified duration. Supports success, error, and custom types.Import
Props
Controls visibility (triggers show/hide animation)
Visual variant:
success (green with check), error (red with X), custom (use your own icon/color)Message text to display
Custom icon for
type="custom"Auto-dismiss duration in milliseconds (default: 3000)
Show manual close button
Callback fired when dismissed (auto or manual)
Custom styles for the container (e.g., custom background for type=“custom”)
Usage
Notes
- Positioned fixed at bottom-left of screen
- Slide-in animation from scale(0,0) to scale(1,1)
- Auto-dismisses after
closeAftermilliseconds - Success type uses green background with white Check icon
- Error type uses red background with white X icon
- Custom type requires
iconprop and respectsstyle.background - Close button appears in top-right corner when
showCloseis true - Component only renders when
isVisiblehas been true at least once