Attributes/FoldableEditorAttribute.cs
using System;

namespace ExtendedEditor.Attributes;

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public sealed class FoldableEditorAttribute : Attribute
{
    public bool StartFolded = false;
    public string? Label;

    public FoldableEditorAttribute(bool foldedByDefault = false, string? label = null)
    {
        StartFolded = foldedByDefault;
        Label = label;
    }
}