@pk-design/react-tailwind 1.0.3 → 1.0.5
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
|
@@ -1,11 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @pk-design/react-tailwind
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A modern, production-ready React + TailwindCSS component library.
|
|
4
|
+
Fully typed with TypeScript, built for scalability, and easy to integrate.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
---
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
## 🚀 Live Documentation & Demo
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
👉 **[View Full Documentation & Live Demo](https://prabhukathiresan.github.io/react-tailwind/)**
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 📦 Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
# Using npm
|
|
18
|
+
npm install @pk-design/react-tailwind
|
|
19
|
+
|
|
20
|
+
# Or using pnpm
|
|
21
|
+
pnpm add @pk-design/react-tailwind
|
|
22
|
+
|
|
23
|
+
# Or using yarn
|
|
24
|
+
yarn add @pk-design/react-tailwind
|
|
25
|
+
```
|
|
@@ -174,13 +174,13 @@ const THEMED_BTN_CLASS = {
|
|
|
174
174
|
const getBtnSizeClasses = (size, iconOnly = false) => {
|
|
175
175
|
switch (size) {
|
|
176
176
|
case 'xs':
|
|
177
|
-
return `text-xs
|
|
177
|
+
return `text-xs ${iconOnly ? 'p-1 rounded-sm' : 'px-2 py-1 rounded-sm gap-1'}`;
|
|
178
178
|
case 'sm':
|
|
179
|
-
return `text-sm
|
|
179
|
+
return `text-sm ${iconOnly ? 'p-1.5 rounded' : ' px-3 py-1.5 rounded gap-1.5'}`;
|
|
180
180
|
case 'md':
|
|
181
|
-
return `text-sm
|
|
181
|
+
return `text-sm ${iconOnly ? 'p-2 rounded-md' : 'px-4 py-2 rounded-md gap-2'}`;
|
|
182
182
|
case 'lg':
|
|
183
|
-
return `text-base
|
|
183
|
+
return `text-base ${iconOnly ? 'p-2.5 rounded-lg' : 'px-5 py-2.5 rounded-lg gap-2'}`;
|
|
184
184
|
}
|
|
185
185
|
};
|
|
186
186
|
const Button = React.forwardRef((props, ref) => {
|