<?php
namespace App\Forms\Components;
use Filament\Forms\Components\Placeholder;
class Alert extends Placeholder
{
protected string $view = 'forms.components.alert';
public string $template = 'twui.info-alert';
public mixed $content;
public function type($type): static
{
$this->template = "twui.{$type}-alert";
return $this;
}
}
<?php
namespace App\Forms\Components;
use Filament\Forms\Components\Placeholder;
class Alert extends Placeholder
{
protected string $view = 'forms.components.alert';
public string $template = 'twui.info-alert';
public mixed $content;
public function type($type): static
{
$this->template = "twui.{$type}-alert";
return $this;
}
}