komga/next-ui/src/components
Gauthier Roebroeck 60e7829f07 users dialog wip
2026-03-30 17:17:58 +08:00
..
app refactor colada composables 2026-03-30 17:17:58 +08:00
dialogs users dialog wip 2026-03-30 17:17:58 +08:00
forms/user users dialog wip 2026-03-30 17:17:58 +08:00
AppFooter.vue next-ui wip 2026-03-30 17:17:57 +08:00
BuildCommit.vue refactor colada composables 2026-03-30 17:17:58 +08:00
BuildVersion.vue refactor colada composables 2026-03-30 17:17:58 +08:00
HelloWorld.vue next-ui wip 2026-03-30 17:17:57 +08:00
LoginForm.vue next-ui wip 2026-03-30 17:17:57 +08:00
README.md next-ui wip 2026-03-30 17:17:57 +08:00

Components

Vue template files in this folder are automatically imported.

🚀 Usage

Importing is handled by unplugin-vue-components. This plugin automatically imports .vue files created in the src/components directory, and registers them as global components. This means that you can use any component in your application without having to manually import it.

The following example assumes a component located at src/components/MyComponent.vue:

<template>
  <div>
    <MyComponent />
  </div>
</template>

<script lang="ts" setup>
  //
</script>

When your template is rendered, the component's import will automatically be inlined, which renders to this:

<template>
  <div>
    <MyComponent />
  </div>
</template>

<script lang="ts" setup>
  import MyComponent from '@/components/MyComponent.vue'
</script>