Added sticky option to toolbar

This commit is contained in:
Mia Rose Winter 2024-01-24 16:47:58 +01:00
parent aff7ec5630
commit f2a5231c8d
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,4 @@
<div class="flex flex-wrap gap-1 p-2 bg-base-200" @attributes="AdditionalAttributes">
<div class="flex flex-wrap gap-1 p-2 bg-base-200 @(!Sticky ? string.Empty : "sticky top-0")" @attributes="AdditionalAttributes">
@ChildContent
</div>
@ -7,4 +7,6 @@
public required RenderFragment ChildContent { get; set; }
[Parameter(CaptureUnmatchedValues = true)]
public IDictionary<string, object>? AdditionalAttributes { get; set; }
[Parameter]
public bool Sticky { get; set; } = true;
}

File diff suppressed because one or more lines are too long