Adds a toast message directive.