Skip to content

zk-loader ​

A loading indicator that gives way to the content.

Props ​

PropTypeDefaultDescription
loadingbooltrueShows the indicator; when false, shows the slot
statusstring''Text for the indicator
classstring|nullnullCSS class(es) merged onto the root element

Undeclared attributes forward to the root element.

Slots ​

SlotDescription
defaultContent shown once loaded

role="status", aria-live="polite" and aria-busy="true" while loading. Animate .loader-animation in your style.

Examples ​

Basic ​

blade
<x-zk-loader :loading="$loading" status="Loading">
    {{ $content }}
</x-zk-loader>

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