@inherits DComponentBase
@* daisyUI Stack: https://daisyui.com/components/stack/ . The first child is on top; w-* and h-* on the stack make
all its children the same size. *@
@ChildContent
@code {
[Parameter] public RenderFragment ChildContent { get; set; }
[Parameter] public DStackPlacement Placement { get; set; }
string CssClass => Cx("stack", PlacementClass, Class);
string PlacementClass => Placement switch
{
DStackPlacement.Top => "stack-top",
DStackPlacement.Start => "stack-start",
DStackPlacement.End => "stack-end",
_ => null
};
}