Layouts

In this example:

  • layouts/default.vue is used in the home page as no layout property is defined
  • layouts/auth.vue is used in the /login page with the layout property set to 'auth'
  • layouts/profile.vue is used in the /profile page the layout property set to 'profile'

Learn more in the Concepts book in the Views chapter or in the Directory Structure book in the Layouts chapter.

Loading CodeSandbox...