button animated change component..

This commit is contained in:
Cüneyt Şentürk
2022-07-04 12:52:24 +03:00
parent 47610fa373
commit ded7bfdce6
31 changed files with 135 additions and 84 deletions

View 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');
}
}

View File

@ -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;
/**