Skip to content

Commit 227e858

Browse files
add nucleus-box
1 parent bd28810 commit 227e858

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

demo/src/App.vue

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
<script setup>
2-
import Nucleus, { NucleusCode } from 'nucleus-vue';
2+
import Nucleus, { NucleusCode, NucleusBox } from 'nucleus-vue';
33
import { configApp } from './App.config';
44
</script>
55

66
<template>
77
<Nucleus :config="configApp">
88
<VLibras />
9-
<div class="content example">
10-
<h2>Usage Example</h2>
11-
9+
<NucleusBox class="example" title="Usage Example">
1210
<h3>Widget Position</h3>
1311
<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>
1514

1615
<h3>Available Position Types</h3>
1716
<p>The position options that can be used are:</p>
@@ -28,7 +27,8 @@ import { configApp } from './App.config';
2827

2928
<h3>Avatar</h3>
3029
<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>
3232

3333
<h3>Available Avatar Options</h3>
3434
<ul>
@@ -40,8 +40,9 @@ import { configApp } from './App.config';
4040

4141
<h3>Opacity</h3>
4242
<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>
4546

4647
</Nucleus>
4748
</template>
@@ -71,7 +72,7 @@ import { configApp } from './App.config';
7172
color: var(--primary);
7273
font-weight: bold;
7374
}
74-
75+
7576
code {
7677
margin-bottom: 1rem;
7778
}

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -1140,10 +1140,10 @@ normalize-package-data@^3.0.0:
11401140
semver "^7.3.4"
11411141
validate-npm-package-license "^3.0.1"
11421142

1143-
nucleus-vue@^0.0.7:
1144-
version "0.0.7"
1145-
resolved "https://registry.npmjs.org/nucleus-vue/-/nucleus-vue-0.0.7.tgz"
1146-
integrity sha512-SJB1zwo+1VWUxT0O4cx3EopF/jZE+ARaDZESRpCUdNMzxePfruBxaOBpMPTd6YyYAuThsT/wDE/1y+iIfdtPeA==
1143+
nucleus-vue@^0.0.14:
1144+
version "0.0.14"
1145+
resolved "https://registry.npmjs.org/nucleus-vue/-/nucleus-vue-0.0.14.tgz"
1146+
integrity sha512-5BKa7eEx5mbm8dOS7m6h/fULvdqKClQn1FHWc0aqQHP1+vn6OgUtPS1raihZiJuusvN8b5rzBRto9KKVvx6uig==
11471147

11481148
p-limit@^1.1.0:
11491149
version "1.3.0"

0 commit comments

Comments
 (0)