A small editor payload record that represents an IconPanel control for the RazorDesigner document system. It sets the control Kind to ControlType.IconPanel and exposes an IconName property for serialization.
using System.Text.Json.Serialization;
namespace Grains.RazorDesigner.Document;
public sealed record IconPanelPayload : Payload
{
[JsonIgnore]
public override ControlType Kind => ControlType.IconPanel;
public override string IconName { get; init; } = "";
}