Editor/Templates/PaletteTemplate.cs

A small immutable record type used by the editor to describe a UI palette entry. It stores a name, icon name, whether it is wrapped in a container, a readonly list of root ControlRecord items, and an associated file path.

using System.Collections.Generic;
using Grains.RazorDesigner.Document;

namespace Grains.RazorDesigner.Templates;

public sealed record PaletteTemplate(
	string Name,
	string IconName,
	bool WrappedInContainer,
	IReadOnlyList<ControlRecord> Roots,
	string FilePath );