Printer Logo


Creating Page Loading States

The Loading command creates a new Loading State Component. Review the Next Documentation on Loading UI and Streaming to learn more.

λ Usage
λ printer loading [path]
λ Example Usage
λ printer loading example
λ This command then creates
λ app/example/loading.tsx
λ ...
λ printer loading multi/folder/example
λ This command then creates
λ app/multi/folder/example/loading.tsx

This then generates in the file app/example/loading.tsx the following code.