@code { private string _serverFilter = ""; private string serverFilter { get => _serverFilter; set { _serverFilter = value; } } [Parameter] public EventCallback FilterSearchTerm { get; set; } [Parameter(CaptureUnmatchedValues = true)] // Enables other HTML attributes like class, style, data-x, etc. public Dictionary? OtherAttributes { get; set; } private void HandleSearch() { FilterSearchTerm.InvokeAsync(serverFilter); } public void ClearFilter() { this.serverFilter = string.Empty; } }