"text-xs gap-2 text-base", "medium_link" => "text-base gap-4", "small" => "px-4 py-[11px] text-xs gap-2", "medium" => "px-6 py-[14px] text-base gap-4", "semi_large" => "px-3 py-[11px] text-base", ]; if (empty($font_size)) { $font_size = array_key_exists($font_key, $font_sizes) ? $font_sizes[$font_key] : $font_sizes['medium']; } # Icon $icon_position = isset($icon_name) ? $icon_position ?? "after" : false; $icon = [ "name" => $icon_name ?? false, "size" => $font === "small" ? "xs" : $font, ]; # JS actions $trigger = isset($trigger) ? "js-backwpup-$trigger" : ""; $display = $display ?? ''; # CSS $class = $class ?? ""; # Tooltip position $tooltip_pos = $tooltip_pos ?? "top"; $tooltip_icon = $tooltip_icon ?? "info"; $tooltip_size = $tooltip_size ?? "small"; $button_type = $button_type ?? 'submit'; ?>