@inherits DComponentBase @* One item of a DMegamenu: its button and the popover it opens, rendered as siblings because daisyUI pairs them by position (nth-of-type) among the megamenu's direct children. class and other attributes go on the popover. *@
@ChildContent
@code { /// The button's text; Header replaces it with markup. [Parameter] public string Text { get; set; } [Parameter] public RenderFragment Header { get; set; } /// The popover's content: a DMenu or anything else. [Parameter] public RenderFragment ChildContent { get; set; } /// Drop the arrow daisyUI draws after the button's text (after:content-none). [Parameter] public bool HideArrow { get; set; } [Parameter] public string ButtonClass { get; set; } readonly string uid = "d" + Guid.NewGuid().ToString("N")[..8]; }