@zango-core/components 0.1.1 → 0.1.2
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
|
@@ -20,15 +20,6 @@ npm install @zango/components
|
|
|
20
20
|
|
|
21
21
|
## 🎨 Setup
|
|
22
22
|
|
|
23
|
-
### Import Styles
|
|
24
|
-
|
|
25
|
-
Import the component library styles in your application:
|
|
26
|
-
|
|
27
|
-
```tsx
|
|
28
|
-
// In your main entry file (e.g., main.tsx or index.tsx)
|
|
29
|
-
import '@zango/components/style.css';
|
|
30
|
-
```
|
|
31
|
-
|
|
32
23
|
### Peer Dependencies
|
|
33
24
|
|
|
34
25
|
Make sure you have the following peer dependencies installed:
|
|
@@ -65,7 +56,7 @@ module.exports = {
|
|
|
65
56
|
|
|
66
57
|
```tsx
|
|
67
58
|
import { Button, Badge, Accordion } from '@zango/components';
|
|
68
|
-
//
|
|
59
|
+
// CSS is automatically included - no separate import needed!
|
|
69
60
|
|
|
70
61
|
function App() {
|
|
71
62
|
return (
|
|
@@ -93,7 +84,7 @@ function App() {
|
|
|
93
84
|
### With Custom Colors
|
|
94
85
|
|
|
95
86
|
```css
|
|
96
|
-
/* Override colors in your CSS
|
|
87
|
+
/* Override colors in your CSS */
|
|
97
88
|
:root {
|
|
98
89
|
--color-Brand-500: #3b82f6;
|
|
99
90
|
--color-Brand-600: #2563eb;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
|
-
interface PasswordInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>,
|
|
3
|
+
interface PasswordInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type"> {
|
|
4
4
|
error?: boolean;
|
|
5
5
|
}
|
|
6
6
|
declare const PasswordInput: React.ForwardRefExoticComponent<PasswordInputProps & React.RefAttributes<HTMLInputElement>>;
|