Printer Logo

Printer

Creating Page Layouts

The Layout command creates a new Layout Component. Review the Next Documentation on Pages and Layouts to learn more.

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

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