fix(install): set message block on forms to show error messages

fixes #157
This commit is contained in:
Yassine Doghri 2022-02-01 16:08:55 +00:00
commit 3a0a20d59c
3 changed files with 23 additions and 1 deletions

View file

@ -30,6 +30,8 @@ class Alert extends Component
$title = $this->title === null ? '' : '<div class="font-semibold">' . $this->title . '</div>';
$class = 'inline-flex w-full p-2 text-sm border rounded ' . $variantClasses[$this->variant] . ' ' . $this->class;
unset($this->attributes['slot']);
unset($this->attributes['variant']);
$attributes = stringify_attributes($this->attributes);
return <<<HTML