Documentation Index
Fetch the complete documentation index at: https://mintlify.com/dip/cmdk/llms.txt
Use this file to discover all available pages before exploring further.
Command.Loading renders a role="progressbar" element while asynchronous command items are loading. Conditionally render it based on your loading state — when items are ready, stop rendering it and let Command.Empty or your items take over.
[cmdk-loading]
Props
A number between
0 and 100 representing the estimated loading progress. Set as aria-valuenow on the progressbar element. Optional — omit it if you don’t have a meaningful progress value and just want to indicate indeterminate loading.Accessible label for the progressbar. Set as
aria-label on the element. Not shown visually. Customize it to describe what is being loaded.Examples
Conditional rendering with loading state
RenderCommand.Loading only while fetching, then let normal items or Command.Empty take over:
Determinate progress bar
When you can estimate loading progress, pass aprogress value to give screen readers a percentage:
