Code/Demos/AnimationShowcase/Components/Section.cs
using Goo;
using Sandbox.UI;
using static Sandbox.DemoTokens;

namespace Sandbox.AnimationShowcase;

public static class Section
{
    public static Container Build( string title, Container body ) => new Container
    {
        FlexDirection = FlexDirection.Column,
        Gap           = Space2,
        Children =
        {
            new Text( title ) { FontColor = FgSecondary, FontSize = FontBodySm },
            body,
        },
    };
}