A small UI component Razor file defining a spawn menu filter. It renders a TextEntry input bound to a Query string property and includes a clear button and placeholder.
@using Sandbox;
@using Sandbox.UI;
@inherits Panel
@namespace Sandbox
<root>
<TextEntry class="filter menu-input menu-filter-input" placeholder="Filter.." Value:bind=@Query HasClearButton></TextEntry>
</root>
@code
{
public string Query { get; set; }
}