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-04-06 05:56:08 +00:00
|
|
|
::ReadMore{link="/guide/directory-structure/composables"}
|
2022-03-30 15:59:28 +00:00
|
|
|
::
|
|
|
|
|
|
|
|
::sandbox{repo="nuxt/framework" branch="main" dir="examples/auto-imports/composables" file="app.vue"}
|
2022-10-06 09:15:30 +00:00
|
|
|
::
|