@antadesign/anta
    Preparing search index...

    Function TitleUnreviewed

    • Block-level heading with level 1-6, priority, tone, and optional truncation.

      The wrapper supplies role="heading" and aria-level. Compose icons, badges, and links as children. Title has no margins. Use the parent's gap or padding to space it within a layout.

      Native <h1>–<h6> headings use the same type scale with document margins when Anta's reset stylesheet is loaded.

      See Install and configure for stylesheet setup.

      Parameters

      Returns any

      <Title level={1}>Page title</Title>
      <Title level={2} tone="brand">Section</Title>
      <Title level={3} font="sans-serif">Run 4821: 12 failures</Title>
      <Title level={3}>
      <Icon shape="bookmark" /> Saved items
      </Title>