@TitleChildren
@InnerContent
@code { [Parameter] public RenderFragment TitleChildren { get; set; } [Parameter] public RenderFragment InnerContent { get; set; } [Parameter] public bool HasInnerContent { get; set; } = true; [Parameter] public string InnerContentContainerCss { get; set; } = "block w-auto ml-5 md:ml-10 rounded-lg neomorph is-nxsmall"; [Parameter] public bool IsOpen { get; set; } = false; string Hidden { get; set; } = VConstants.HideClass; string ButtonCss => $"{(HasInnerContent ? default : "cursor-not-allowed")} neoBtnSmall"; string LeftIconCss => IsOpen ? "ion-md-arrow-dropup" : "ion-md-arrow-dropdown"; void OpenCloseInnerContent() { IsOpen = !IsOpen; Hidden = IsOpen ? default : VConstants.HideClass; } }