Skip to content

Commit

Permalink
add nucleus-box
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasferreiralimax committed Oct 26, 2024
1 parent bd28810 commit 227e858
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
19 changes: 10 additions & 9 deletions demo/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
<script setup>
import Nucleus, { NucleusCode } from 'nucleus-vue';
import Nucleus, { NucleusCode, NucleusBox } from 'nucleus-vue';
import { configApp } from './App.config';
</script>

<template>
<Nucleus :config="configApp">
<VLibras />
<div class="content example">
<h2>Usage Example</h2>

<NucleusBox class="example" title="Usage Example">
<h3>Widget Position</h3>
<p>You can set the widget's position using the <code>position</code> prop. For example:</p>
<NucleusCode language="tsx">{{ `<VLibras position="left" />` }}</NucleusCode>
<NucleusCode language="tsx">{{ `<VLibras position="left" />` }}
</NucleusCode>

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

<h3>Avatar</h3>
<p>You can select the widget's avatar using the <code>avatar</code> prop. Example:</p>
<NucleusCode language="tsx">{{ `<VLibras avatar="hosana" />` }}</NucleusCode>
<NucleusCode language="tsx">{{ `<VLibras avatar="hosana" />` }}
</NucleusCode>

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

<h3>Opacity</h3>
<p>To adjust the widget's opacity, use the <code>opacity</code> prop:</p>
<NucleusCode language="tsx">{{ `<VLibras opacity="0.8" />` }}</NucleusCode>
</div>
<NucleusCode language="tsx">{{ `<VLibras opacity="0.8" />` }}
</NucleusCode>
</NucleusBox>

</Nucleus>
</template>
Expand Down Expand Up @@ -71,7 +72,7 @@ import { configApp } from './App.config';
color: var(--primary);
font-weight: bold;
}
code {
margin-bottom: 1rem;
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1140,10 +1140,10 @@ normalize-package-data@^3.0.0:
semver "^7.3.4"
validate-npm-package-license "^3.0.1"

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

p-limit@^1.1.0:
version "1.3.0"
Expand Down

0 comments on commit 227e858

Please sign in to comment.