[ 'class' => 'text-pine-900 bg-pine-100 border-pine-300', 'glyph' => 'check', ], 'danger' => [ 'class' => 'text-red-900 bg-red-100 border-red-300', 'glyph' => 'close', ], 'warning' => [ 'class' => 'text-yellow-900 bg-yellow-100 border-yellow-300', 'glyph' => 'alert', ], ]; $glyph = ''; $title = $this->title === null ? '' : '
' . $this->title . '
'; $class = 'inline-flex w-full p-2 text-sm border rounded ' . $variants[$this->variant]['class'] . ' ' . $this->class; unset($this->attributes['slot']); unset($this->attributes['variant']); $attributes = stringify_attributes($this->attributes); return <<{$glyph}
{$title}

{$this->slot}

HTML; } }