Form Card Title
Form card description.
App Card Title
App card description.
4 maxWidth variant: full, 7xl (default), 3xl, xl
- title : props / slot - nullable
- description : props / slot - nullable
- maxWidth : props (default = 7xl) - nullable
- actions : slot - nullable
- content : slot - nullable
Stat Card
The default for stat card is just plain text, if you put href it will be a link and add wire:navigate, if you put openNewTab='true' it will remove wire:navigate and add target='_blank' to open new tab
- title : props / slot - nullable
- stat : props / slot - nullable
- href : props - nullable
- openNewTab : props (default = false) - nullable
Button
All the available button.
When loading is active it will remove icon slot and replace it with loading spinner. Also button will be disable when have loading props and loading is active.
- title : props / slot - nullable if have slot
- icon : slot - nullable
- loading : props - nullable
- iconPlacement : props (default = left) - nullable
- slot - nullable if have title
- title : props / slot - nullable if have slot
- href : props (default = null) - nullable
- icon : slot - nullable
- slot - nullable if have title
- title : props / slot - nullable if have slot
- href : props (default = null) - nullable
- icon : slot - nullable
- active : props - nullable
- slot - nullable if have title
Button link or button link navigation is not wire:navigate by default. You should add wire:navigate to make SPA-like experience.
Dropdown
Press 'esc' also close dropdown and 'tab' or ' shift + tab' to navigate.
4 align variant: left, right (default), top-left, top-right.
2 width variant: max (default), 48.
It also have smaller component like dropdown link, dropdown button and dropdown category.
- title : props / slot - nullable
- align : props (default = right) - nullable
- width : props (default = max) - nullable
- autoClose : props (default = true) - nullable
- trigger : slot - required
- content : slot - required
Toaster
4 toaster type available : success, warning, error and info.
The default position alignment is bottom left, but you can change it on 'toaster.php'.
Modal
Press 'esc' also close dropdown and 'tab' or ' shift + tab' to navigate.
- title : props / slot - nullable
- content : slot - nullable if form available
- form : slot - nullable if content available
- submit : props - nullable if content available
- actions : slot - required
By the way, when it comes to data creation, I prefer utilizing another full-page Livewire component and not using a modal.