mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2025-09-20 11:35:02 +02:00
🎨 style(new!): add new ui vue.js
Signed-off-by: Abhiraj Roy <157954129+iconized@users.noreply.github.com>
This commit is contained in:
24
components/README.md
Normal file
24
components/README.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# `components/` [Directory](https://nuxt.com/docs/getting-started/views#components)
|
||||
|
||||
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*
|
||||
````html
|
||||
<template>
|
||||
<div>
|
||||
<h1>Welcome to the homepage</h1>
|
||||
<AppAlert>
|
||||
This is an auto-imported component.
|
||||
</AppAlert>
|
||||
</div>
|
||||
</template>
|
||||
````
|
||||
|
||||
*components/AppAlert.vue*
|
||||
````html
|
||||
<template>
|
||||
<span>
|
||||
<slot />
|
||||
</span>
|
||||
</template>
|
||||
````
|
Reference in New Issue
Block a user