ToastOptions
Configure toasts using the ToastOptions interface.
Properties
message(string): The message to display.type(optional,'success' | 'error' | 'info' | 'warning'): Toast type. Default:'info'.duration(optional, number): Duration in milliseconds. Default:3000.position(optional,'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'): Toast position. Default:'top-right'.theme(optional,'light' | 'dark'): Theme for styling. Default:'light'.
Example
RaytolfasToastify.toast({
message: 'Operation completed!',
type: 'success',
duration: 5000,
position: 'bottom-left',
theme: 'dark',
});
See Styling for custom styles.