IconifyPanel.razor

A UI Panel Razor component that renders an icon element. It inherits from Sandbox.UI.Panel and outputs an img tag when a _texture field is non-null, using _texture.ResourcePath and a Size property for width/height.

@inherits Sandbox.UI.Panel
@namespace Iconify

<root class="iconify-icon">
	@if ( _texture is not null )
	{
		<img src="@_texture.ResourcePath" style="width: @(Size)px; height: @(Size)px;" />
	}
</root>