Flash message (notification) components with Tailwind CSS

Rails Designer’s NotificationComponent works tightly with Rails’ flash mechanism. Allowing you to show simple text messages to more advanced notifications that include actions. This component works a bit different as configuration is done by adding attributes to the flash object, eg. flash[:notice] {message: 'Password change successful'}. Position of the notification can be any of the four corners. Have an action that takes some time? Show a spinner or a progress bar to indicate the remaining running time.