Skip to content

zk-heading ​

Renders a semantic heading (<h1>–<h6>) based on the level prop.

Props ​

PropTypeDefaultDescription
levelint1Heading level 1–6, clamped automatically
classstring|nullnullCSS class(es) merged onto the element

Examples ​

Basic ​

blade
<x-zk-heading :level="2">Section Title</x-zk-heading>
{{-- renders: <h2>Section Title</h2> --}}

Dynamic level ​

blade
<x-zk-heading :level="$depth" class="section-title">
    {{ $section->title }}
</x-zk-heading>

Notes ​

  • Level is clamped between 1 and 6 — passing 0 renders <h1>, passing 9 renders <h6>.

Documentation of 3.2.0 , built from c93e21f on 3.2.0 by pipeline #2919741884 on 2026-10-06.