2022-03-30 15:59:28 +00:00
|
|
|
---
|
|
|
|
template: Example
|
|
|
|
---
|
|
|
|
|
|
|
|
# Composables
|
|
|
|
|
2022-04-16 13:53:36 +00:00
|
|
|
This example shows how to use the `composables/` directory to auto-import composables.
|
2022-03-30 15:59:28 +00:00
|
|
|
If the component 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-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"}
|