'true', 'title' => $attributes['slot'], 'data-tooltip' => 'bottom', ]; $allAttributes = [...$attributes, ...$iconButtonAttributes]; parent::__construct($allAttributes); $glyphSizeClass = match ($this->size) { 'small' => 'text-sm', 'large' => 'text-2xl', default => 'text-lg', }; $this->slot = (string) icon($this->glyph, [ 'class' => $glyphSizeClass, ]); } }