@nhatdev94/common-ui 1.1.12 → 1.1.13
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 +20 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,6 +18,7 @@ This package requires:
|
|
|
18
18
|
------------------------------------------------------------------------
|
|
19
19
|
|
|
20
20
|
🚀 Hướng dẫn tích hợp cho dự án mới
|
|
21
|
+
|
|
21
22
|
Để sử dụng thư viện trong các dự án mới (Vite, Next.js, v.v.), vui lòng làm theo các bước hướng dẫn dưới đây.
|
|
22
23
|
|
|
23
24
|
1️⃣ Cài đặt
|
|
@@ -51,6 +52,25 @@ Hãy thêm dòng @source bên dưới phần import trong file CSS:
|
|
|
51
52
|
|
|
52
53
|
------------------------------------------------------------------------
|
|
53
54
|
|
|
55
|
+
🛠 Cách sử dụng Component
|
|
56
|
+
|
|
57
|
+
Sau khi thiết lập xong, bạn có thể bắt đầu sử dụng các component trong dự án của mình:
|
|
58
|
+
|
|
59
|
+
``` bash
|
|
60
|
+
import { Button } from '@nhatdev94/common-ui';
|
|
61
|
+
|
|
62
|
+
export default function App() {
|
|
63
|
+
return (
|
|
64
|
+
<div className="flex gap-4 p-8">
|
|
65
|
+
<Button variant="primary">Click Me</Button>
|
|
66
|
+
<Button variant="outline">Cancel</Button>
|
|
67
|
+
</div>
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
------------------------------------------------------------------------
|
|
73
|
+
|
|
54
74
|
# 1. Executive Summary
|
|
55
75
|
|
|
56
76
|
`@nhatdev94/common-ui` là thư viện UI component dùng chung cho toàn bộ hệ
|