AstrolUI AstrolUI
Yellow Orange Red Green Blue Purple Custom color
Light mode
Title

1. Demo AstrolTitle

Example
@using Astrol.Component.Basic.Title
<AstrolTitle Icon="astrol-star-1" Text="Example" SetTextAsPageTitle="false" />
 
<!-- Page title + metadata (requires <HeadOutlet />) -->
<AstrolTitle Icon="astrol-star-1" Text="Example">
   <HeadContent>
       <meta name="description" content="Example...">
       <meta property="og:url" content="https://doc.astrolui.com" />
   </HeadContent>
</AstrolTitle>

Supported parameters

  • Text (string?): title text (not required).
  • Icon (string?): class of the icon before the text, in a square tinted with the theme color (not required).
  • Description (string?): secondary text under the title (not required).
  • Class (string?): additional CSS class added to astrol-cont-title (not required).
  • SetTextAsPageTitle (bool): if true and Text is not empty, the text is also used as the browser tab title through PageTitle (default is true).
  • HeadContent (RenderFragment?): content added to the page <head>, such as metadata (not required).
PageTitle and HeadContent require the app to include the <HeadOutlet /> component.
Markdown for AI © 2026 AstrolUI v10.0.13