button animated change component..
This commit is contained in:
36
app/View/Components/Button/Hover.php
Normal file
36
app/View/Components/Button/Hover.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components\Button;
|
||||
|
||||
use App\Abstracts\View\Component;
|
||||
|
||||
class Hover extends Component
|
||||
{
|
||||
public $color;
|
||||
|
||||
public $groupHover;
|
||||
|
||||
/**
|
||||
* Create a new component instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(
|
||||
string $color = 'to-black',
|
||||
bool $groupHover = false,
|
||||
|
||||
) {
|
||||
$this->color = $color;
|
||||
$this->groupHover = $groupHover;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the view / contents that represent the component.
|
||||
*
|
||||
* @return \Illuminate\Contracts\View\View|string
|
||||
*/
|
||||
public function render()
|
||||
{
|
||||
return view('components.button.hover');
|
||||
}
|
||||
}
|
@ -3,11 +3,11 @@
|
||||
namespace App\View\Components\Link;
|
||||
|
||||
use App\Abstracts\View\Component;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class Hover extends Component
|
||||
{
|
||||
public $color;
|
||||
|
||||
public $groupHover;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user