@klu_dev/ui-klu-green 1.0.2 → 1.0.3
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 +13 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,14 +16,19 @@ npm install @klu_dev/ui-klu-green
|
|
|
16
16
|
- BackButton
|
|
17
17
|
|
|
18
18
|
## 🚀 Uso Input
|
|
19
|
+
|
|
20
|
+
```tsx
|
|
19
21
|
import { Input } from "@klu_dev/ui-klu-green"
|
|
20
22
|
|
|
21
23
|
export default function Example() {
|
|
22
24
|
return <Input placeholder="Escribe algo..." size="lg" />
|
|
23
25
|
}
|
|
26
|
+
```
|
|
24
27
|
|
|
25
28
|
- **Input con validación:**
|
|
26
29
|
|
|
30
|
+
```tsx
|
|
31
|
+
|
|
27
32
|
import { Input } from "@klu_dev/ui-klu-green"
|
|
28
33
|
import { useState } from "react"
|
|
29
34
|
|
|
@@ -52,8 +57,12 @@ export default function Example() {
|
|
|
52
57
|
/>
|
|
53
58
|
)
|
|
54
59
|
}
|
|
60
|
+
```
|
|
55
61
|
|
|
56
62
|
## 🚀 Uso Button
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
```tsx
|
|
57
66
|
import { Button } from "@klu_dev/ui-klu-green"
|
|
58
67
|
|
|
59
68
|
export default function Example() {
|
|
@@ -69,4 +78,7 @@ export default function Example() {
|
|
|
69
78
|
onClick={() => console.log("Regresar")}
|
|
70
79
|
/>
|
|
71
80
|
)
|
|
72
|
-
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
```
|