Props & events

Attributes & behavior classes

Configured entirely through the FlickUI.toast() options object — there is no markup to author.

Attribute / classPurpose
title / bodyHeadline and message text
variation'info' (default) | 'success' | 'warning' | 'danger'
durationMilliseconds before auto-hide; 0 requires manual dismissal
positionWhich of the six screen corners/edges the toast stacks in

Events

FlickUI.toast() returns the created element, which you can pass to FlickUI.dismiss() yourself.

EventDescription
flick:dismissFired when a toast is dismissed, either automatically or via FlickUI.dismiss().