Skip to main content

Open-WebUI-Functions is here! New Pipelines, Filters, and more. Learn more

Header Label Component

Header Label Component

With this element you can set a header on any element. This then looks like this:

custom-headerlabel

Key features

  • Auto-hides when no header text is supplied, keeping layouts compact.
  • Uses shared styles so typography and color remain consistent across screens.
  • Designed to sit above entries, check boxes, or custom controls to provide accessible context.

Here is the corresponding code for it:

Style

How to use

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:elements="using:App.Elements">
<StackLayout>
<elements:HeaderLabel Header="Change Password" />
<Entry IsPassword="True"
Placeholder="New Password"
Text="{Binding Password, Mode=TwoWay}" />
</StackLayout>
</ContentPage>

Implementation notes

  • Bind Header to localized resources or validation state messages to provide dynamic feedback.
  • Extend the control with additional bindable properties (for example Margin or TextColor) if your design system requires further customization.
  • Combine the header with AutomationProperties.Name on the associated input field to improve accessibility.