Code/SbTween/Examples/SbetweenTest.razor

A small Razor UI component for Sandbox that renders a div with a title class bound to a editable string property. It defines a string Property with a TextArea attribute and overrides BuildHash to combine the property value for hashing.

Networking
@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 );
}