/
dimamir
/
coolify
Обзор
Документация
Войти
/
dimamir
/
coolify
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
app/View/Components/Forms/Button.php
29 строк
617 B
Thijmen
Fix styling
10 июн 2024, 23:43
10 июн 2024, 23:43
d86274c
Код
Авторство
О чём код?
<?php namespace App\View\Components\Forms; use Closure; use Illuminate\Contracts\View\View; use Illuminate\View\Component; class Button extends Component { /** * Create a new component instance. */ public function __construct( public bool $disabled = false, public bool $noStyle = false, public ?string $modalId = null, public string $defaultClass = 'button' ) { if ($this->noStyle) { $this->defaultClass = ''; } } public function render(): View|Closure|string { return view('components.forms.button'); } }