diff --git a/docs-assets/app/app/Http/Livewire/Actions.php b/docs-assets/app/app/Http/Livewire/Actions.php new file mode 100644 index 0000000000..7a2087bfc7 --- /dev/null +++ b/docs-assets/app/app/Http/Livewire/Actions.php @@ -0,0 +1,68 @@ +label('Edit') + ->button(); + } + + public function linkAction(): Action + { + return Action::make('linkAction') + ->label('Edit') + ->link(); + } + + public function iconButtonAction(): Action + { + return Action::make('iconButtonAction') + ->icon('heroicon-o-pencil-square') + ->iconButton(); + } + + public function dangerAction(): Action + { + return Action::make('dangerAction') + ->label('Delete') + ->color('danger'); + } + + public function largeAction(): Action + { + return Action::make('largeAction') + ->label('Create') + ->size('lg'); + } + + public function iconAction(): Action + { + return Action::make('iconAction') + ->label('Edit') + ->icon('heroicon-m-pencil-square'); + } + + public function iconAfterAction(): Action + { + return Action::make('iconAfterAction') + ->label('Edit') + ->icon('heroicon-m-pencil-square') + ->iconPosition('after'); + } + + public function render() + { + return view('livewire.actions'); + } +} diff --git a/docs-assets/app/resources/views/livewire/actions.blade.php b/docs-assets/app/resources/views/livewire/actions.blade.php new file mode 100644 index 0000000000..3bc26f4558 --- /dev/null +++ b/docs-assets/app/resources/views/livewire/actions.blade.php @@ -0,0 +1,29 @@ +
- Laravel has wonderful documentation covering every aspect of the framework. Whether you are a newcomer or have prior experience with Laravel, we recommend reading our documentation from beginning to end. -
-- Laracasts offers thousands of video tutorials on Laravel, PHP, and JavaScript development. Check them out, see for yourself, and massively level up your development skills in the process. -
-- Laravel News is a community driven portal and newsletter aggregating all of the latest and most important news in the Laravel ecosystem, including new package releases and tutorials. -
-