Pear

PBusy

PBusy is a tiny wrapper for Pico's aria-busy loading pattern. For Pear buttons, use PButton's loading prop instead.

Examples
Saving changes...

Loading account details...

vue
<p-busy>Saving changes...</p-busy>

<p-busy as="article">
  <p>Loading account details...</p>
</p-busy>
API

PBusy Props

NameTypeDefaultDescription
asstring'span'Rendered element.
busybooleantrueControls aria-busy.
labelstring-Accessible label for busy content without visible text.
defaultslot-Busy content.