[aria-busy]
The aria-busy="true" attribute signals to assistive technologies that an element is being updated and its contents are not yet ready.
Use it on any container or interactive element to communicate a loading state.
Basic Usage
live preview
editable html
<article class="card" aria-busy="true">
Loading content...
</article>Loading Button
live preview
editable html
<button disabled="disabled" aria-busy="true">
Loading...
</button>Loading Card
live preview
editable html
<article class="card" aria-busy="true">
<hgroup>
<h3>Loading Content</h3>
<p>Please wait while we fetch your data...</p>
</hgroup>
</article>Loading Form
live preview
editable html
<form aria-busy="true">
<label>Name</label>
<input type="text" disabled>
<label>Email</label>
<input type="email" disabled>
<button disabled>Submit</button>
</form>Best Practices
- Show progress - If duration is known
- Keep users informed - Don't leave them guessing
- Provide alternatives - Allow cancellation
- Accessibility - Use
aria-busyappropriately