SbTween/Examples/SbetweenTest.razor

A Razor UI component for s&box that displays a single div with a title bound to a string property. It exposes a Property editable string MyStringValue with default "Hello World!" and overrides BuildHash to include that value.

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