A Razor UI component for the spawn menu that inherits Sandbox.UI.Panel and exposes a string property Path which is rendered with a @Path token inside the component markup.
@using Sandbox;
@using Sandbox.UI;
@inherits Panel
@namespace Sandbox
<root>
@Path
</root>
@code
{
public string Path { get; set; }
}