A Razor UI component for s&box that renders a div with a title showing a configurable string. It defines a Property with a TextArea attribute and overrides BuildHash to include the string for change detection.
@using Sandbox;
@using Sandbox.UI;
@inherits PanelComponent
@namespace Sandbox
<root>
<div class="title">@MyStringValue</div>
</root>
@code
{
[Property, TextArea] public string MyStringValue { get; set; } = "Hello World!";
protected override int BuildHash() => System.HashCode.Combine( MyStringValue );
}