import { Component, Input, Output, EventEmitter } from "@angular/core"; import { CommonModule } from "@angular/common"; @Component({ selector: "custom-scroll-button", standalone: true, imports: [CommonModule], template: ` `, styles: [ ` button.hover { transform: scale(1.1); } `, ], }) export class CustomScrollButtonComponent { @Input() onClick?: () => void; @Input() inputClass?: string; @Output() clicked = new EventEmitter(); isHovered = false; handleClick() { // Emit the clicked event for the slot system to handle this.clicked.emit(); // Also call onClick if provided for backward compatibility if (this.onClick) { this.onClick(); } } }