A Razor UI page for the spawn menu utilities group. It defines a Utilities page with attributes for icon, title, group and order, and renders a single button-like control that calls ConsoleSystem.Run("kill") when clicked.
@using Sandbox;
@using Sandbox.UI;
@inherits UtilityPage
@namespace Sandbox
@attribute [Icon( "🔧" )]
@attribute [Title( "Utilities" )]
@attribute [Group( "Utilities" )]
@attribute [Order( 0 )]
<root class="page" style="flex-direction: column;">
<div class="control-row" @onclick=@(() => ConsoleSystem.Run( "kill" ))>
<label class="left">🚿 Kill Me</label>
</div>
</root>