[ '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', ], 'default' => [ 'class' => 'text-blue-900 bg-blue-100 border-blue-300', 'glyph' => 'error-warning', ], ]; if (! array_key_exists($this->variant, $variants)) { $this->variant = 'default'; } $glyph = icon(($this->glyph === null ? $variants[$this->variant]['glyph'] : $this->glyph), 'flex-shrink-0 mr-2 text-lg'); $title = $this->title === null ? '' : '
{$this->slot}