Notifications
If you want to show notification popups
Add this to your main layout file. Near the closing </body> tag, for z-index reasons.
Usage
In a TallFormComponent
(Already included). Form submit success, and error messages will be automatically displayed. You don't have to add anything to your TallFormComponent markup, just add the blade component to your main layout file and the rest is magic :)
In a Livewire component or Headless forms
Add the Trait
Dispatch notifications
Color options, $type
Omitting the $type property uses the default color from the config file.
Show validation errors
The notifications are show on the second click of the submit button. On the first click, error messages below each field will be shown.
Validation errors are automatically displayed in a standard form component.
If you want to show notification errors in other Livewire components add this to your submit button. For more info about the "tfjs" alias. See the config file.
Icons
The notification type selects the icon. To change the design, See Icons page.
Last updated
Was this helpful?