Files
Snigdha-OS.github.io/components
Eshan Roy (Eshanized) 74996af65d 🛠️ build(nuxt): shift astro to nuxt
2024-06-16 23:40:11 +05:30
..
2024-06-16 23:40:11 +05:30
2024-06-16 23:40:11 +05:30
2024-06-16 23:40:11 +05:30
2024-06-16 23:40:11 +05:30
2024-06-16 23:40:11 +05:30
2024-06-16 23:40:11 +05:30
2024-06-16 23:40:11 +05:30
2024-06-16 23:40:11 +05:30
2024-06-16 23:40:11 +05:30
2024-06-16 23:40:11 +05:30
2024-06-16 23:40:11 +05:30

components/ Directory

Most components are reusable pieces of the user interface, like buttons and menus. In Nuxt, you can create these components in the components/ directory, and they will be automatically available across your application without having to explicitly import them.

app.vue

<template>
  <div>
    <h1>Welcome to the homepage</h1>
    <AppAlert>
      This is an auto-imported component.
    </AppAlert>
  </div>
</template>

components/AppAlert.vue

<template>
  <span>
    <slot />
  </span>
</template>