File tree Expand file tree Collapse file tree 1 file changed +70
-1
lines changed Expand file tree Collapse file tree 1 file changed +70
-1
lines changed Original file line number Diff line number Diff line change 1
1
<script setup>
2
- import Nucleus from ' nucleus-vue' ;
2
+ import Nucleus , { NucleusCode } from ' nucleus-vue' ;
3
3
import { configApp } from ' ./App.config' ;
4
4
</script >
5
5
6
6
<template >
7
7
<Nucleus :config =" configApp" >
8
8
<VLibras />
9
+ <div class =" content example" >
10
+ <h2 >Usage Example</h2 >
11
+
12
+ <h3 >Widget Position</h3 >
13
+ <p >You can set the widget's position using the <code >position</code > prop. For example:</p >
14
+ <NucleusCode language =" tsx" >{{ `<VLibras position =" left" />` }}</NucleusCode >
15
+
16
+ <h3 >Available Position Types</h3 >
17
+ <p >The position options that can be used are:</p >
18
+ <ul >
19
+ <li >left</li >
20
+ <li >right</li >
21
+ <li >top</li >
22
+ <li >bottom</li >
23
+ <li >bottom-left</li >
24
+ <li >top-left</li >
25
+ <li >bottom-right</li >
26
+ <li >top-right</li >
27
+ </ul >
28
+
29
+ <h3 >Avatar</h3 >
30
+ <p >You can select the widget's avatar using the <code >avatar</code > prop. Example:</p >
31
+ <NucleusCode language =" tsx" >{{ `<VLibras avatar =" hosana" />` }}</NucleusCode >
32
+
33
+ <h3 >Available Avatar Options</h3 >
34
+ <ul >
35
+ <li >icaro</li >
36
+ <li >hosana</li >
37
+ <li >guga</li >
38
+ <li >random</li >
39
+ </ul >
40
+
41
+ <h3 >Opacity</h3 >
42
+ <p >To adjust the widget's opacity, use the <code >opacity</code > prop:</p >
43
+ <NucleusCode language =" tsx" >{{ `<VLibras opacity =" 0.8" />` }}</NucleusCode >
44
+ </div >
45
+
9
46
</Nucleus >
10
47
</template >
48
+
49
+ <style >
50
+ .example {
51
+ h 2,
52
+ h 3 {
53
+ color : var (--color-text );
54
+ margin-bottom : 10px ;
55
+ }
56
+
57
+ p {
58
+ color : var (--color-text );
59
+ line-height : 1.6 ;
60
+ margin-bottom : 20px ;
61
+ }
62
+
63
+ ul {
64
+ padding-left : 20px ;
65
+ margin-bottom : 20px ;
66
+ }
67
+
68
+ ul li {
69
+ list-style-type : disc ;
70
+ margin-bottom : 5px ;
71
+ color : var (--primary );
72
+ font-weight : bold ;
73
+ }
74
+
75
+ code {
76
+ margin-bottom : 1rem ;
77
+ }
78
+ }
79
+ </style >
You can’t perform that action at this time.
0 commit comments