2022-03-30 15:59:28 +00:00
|
|
|
---
|
2022-10-06 09:15:30 +00:00
|
|
|
toc: false
|
2022-03-30 15:59:28 +00:00
|
|
|
---
|
|
|
|
|
2022-11-08 17:03:18 +00:00
|
|
|
# Composables
|
|
|
|
|
|
|
|
This example shows how to use the composables/ directory to auto-import composables.
|
|
|
|
|
|
|
|
If the composable file provides a default export, the name of the composable will be mapped to the name of the file. Named exports can be used as-is.
|
2022-03-30 15:59:28 +00:00
|
|
|
|
2022-11-17 12:09:43 +00:00
|
|
|
::ReadMore{link="/docs/guide/directory-structure/composables"}
|
2022-03-30 15:59:28 +00:00
|
|
|
::
|
|
|
|
|
2023-01-19 19:37:07 +00:00
|
|
|
::sandbox{repo="nuxt/nuxt" branch="main" dir="examples/auto-imports/composables" file="app.vue"}
|
2022-10-06 09:15:30 +00:00
|
|
|
::
|