1
1
<script setup>
2
- import Nucleus , { NucleusCode } from ' nucleus-vue' ;
2
+ import Nucleus , { NucleusCode , NucleusBox } 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
-
9
+ <NucleusBox class =" example" title =" Usage Example" >
12
10
<h3 >Widget Position</h3 >
13
11
<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 >
12
+ <NucleusCode language =" tsx" >{{ `<VLibras position =" left" />` }}
13
+ </NucleusCode >
15
14
16
15
<h3 >Available Position Types</h3 >
17
16
<p >The position options that can be used are:</p >
@@ -28,7 +27,8 @@ import { configApp } from './App.config';
28
27
29
28
<h3 >Avatar</h3 >
30
29
<p >You can select the widget's avatar using the <code >avatar</code > prop. Example:</p >
31
- <NucleusCode language =" tsx" >{{ `<VLibras avatar =" hosana" />` }}</NucleusCode >
30
+ <NucleusCode language =" tsx" >{{ `<VLibras avatar =" hosana" />` }}
31
+ </NucleusCode >
32
32
33
33
<h3 >Available Avatar Options</h3 >
34
34
<ul >
@@ -40,8 +40,9 @@ import { configApp } from './App.config';
40
40
41
41
<h3 >Opacity</h3 >
42
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 >
43
+ <NucleusCode language =" tsx" >{{ `<VLibras opacity =" 0.8" />` }}
44
+ </NucleusCode >
45
+ </NucleusBox >
45
46
46
47
</Nucleus >
47
48
</template >
@@ -71,7 +72,7 @@ import { configApp } from './App.config';
71
72
color : var (--primary );
72
73
font-weight : bold ;
73
74
}
74
-
75
+
75
76
code {
76
77
margin-bottom : 1rem ;
77
78
}
0 commit comments