@oottoo-core/oottoo-ui 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -83,6 +83,53 @@ Requiere `@oottoo-core/oottoo-icons`:
83
83
  - `size`: number | string
84
84
  - `color`: string
85
85
 
86
+ ### OVeChainLogin
87
+
88
+ Componente para conectar wallet VeChain usando `@vechain/dapp-kit-ui`.
89
+
90
+ **Instalación de dependencia peer:**
91
+ ```bash
92
+ npm install @vechain/dapp-kit-ui
93
+ ```
94
+
95
+ **Uso:**
96
+ ```vue
97
+ <template>
98
+ <o-vechain-login
99
+ variant="primary"
100
+ size="lg"
101
+ network="mainnet"
102
+ @connected="handleConnected"
103
+ @disconnected="handleDisconnected"
104
+ @error="handleError"
105
+ />
106
+ </template>
107
+
108
+ <script setup>
109
+ const handleConnected = (address) => {
110
+ console.log('Wallet conectada:', address)
111
+ }
112
+
113
+ const handleDisconnected = () => {
114
+ console.log('Wallet desconectada')
115
+ }
116
+
117
+ const handleError = (error) => {
118
+ console.error('Error:', error)
119
+ }
120
+ </script>
121
+ ```
122
+
123
+ **Props:**
124
+ - `variant`: 'primary' | 'secondary' | 'ghost' (default: 'primary')
125
+ - `size`: 'sm' | 'md' | 'lg' (default: 'md')
126
+ - `network`: 'mainnet' | 'testnet' (default: 'mainnet')
127
+
128
+ **Events:**
129
+ - `connected(address)`: Se emite al conectar una wallet
130
+ - `disconnected`: Se emite al desconectar la wallet
131
+ - `error(message)`: Se emite cuando hay un error de conexión
132
+
86
133
  ## 📄 Licencia
87
134
 
88
135
  MIT - Oottoo Core Team