Skip to content

Commit c76d079

Browse files
committed
Documentation has been createds
1 parent a7764e3 commit c76d079

File tree

1 file changed

+76
-18
lines changed

1 file changed

+76
-18
lines changed

README.md

Lines changed: 76 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,93 @@
1-
# heybooster-loader
1+
# Heybooster Loader
22

3-
This template should help get you started developing with Vue 3 in Vite.
3+
**A plugin developed with Vue 3 and vite.js.**
44

5-
## Recommended IDE Setup
5+
<p align="center">
66

7-
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
7+
[![vue version](https://img.shields.io/npm/v/heybooster-loader.svg)](https://www.npmjs.com/package/heybooster-loader)
8+
[![vue version](https://img.shields.io/badge/vue-3.2-brightgreen.svg)](https://www.npmjs.com/package/heybooster-loader)
89

9-
## Customize configuration
10+
</p>
1011

11-
See [Vite Configuration Reference](https://vitejs.dev/config/).
1212

13-
## Project Setup
13+
## Installing
1414

15-
```sh
16-
npm install
15+
### Package manager
16+
17+
Using npm:
18+
19+
```bash
20+
npm install heybooster-loader
21+
```
22+
23+
Then, import and register the component:
24+
25+
26+
## Global Registration
27+
28+
main.js
29+
```
30+
import Loader from "heybooster-loader";
31+
import "heybooster-loader/style.css"
32+
33+
app.use(Loader);
34+
```
35+
36+
## Local Registration
37+
38+
* Composition Api
39+
40+
```
41+
<script setup>
42+
import { Loader } from "heybooster-loader";
43+
import "heybooster-loader/style.css";
44+
</script>
1745
```
1846

19-
### Compile and Hot-Reload for Development
47+
* Options Api
48+
```
49+
import { Loader } from "heybooster-loader";
50+
import "heybooster-loader/style.css";
2051
21-
```sh
22-
npm run dev
52+
export default {
53+
components: {
54+
Loader
55+
},
56+
}
2357
```
2458

25-
### Compile and Minify for Production
2659

27-
```sh
28-
npm run build
60+
## Usage
61+
62+
63+
* Example 1
2964
```
65+
<template>
66+
<main>
67+
<Loader>
68+
<template #description>
69+
<span>Please Wait...</span>
70+
</template>
71+
</Loader>
72+
</main>
73+
</template>
74+
```
75+
* Example 2
3076

31-
### Lint with [ESLint](https://eslint.org/)
77+
```
78+
<template>
79+
<main>
80+
<Loader/>
81+
</main>
82+
</template>
83+
```
3284

33-
```sh
34-
npm run lint
85+
* Example 3
86+
87+
```
88+
<template>
89+
<main>
90+
<Loader icon="my-icon.svg"/>
91+
</main>
92+
</template>
3593
```

0 commit comments

Comments
 (0)