@ldkj/web-ui 0.2.1 → 0.2.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 +27 -23
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
|
-
# @ldkj/web-ui
|
|
2
|
-
|
|
3
|
-
由 shadcn-ui, Tailwind CSS 和 VitePress 构建的 React 组件库.
|
|
4
|
-
|
|
5
|
-
## 立即开始
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## 使用示例
|
|
12
|
-
|
|
13
|
-
```tsx
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
# @ldkj/web-ui
|
|
2
|
+
|
|
3
|
+
由 shadcn-ui, Tailwind CSS 和 VitePress 构建的 React 组件库.
|
|
4
|
+
|
|
5
|
+
## 立即开始
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @ldkj/web-ui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## 使用示例
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
import "@ldkj/web-ui/style.css";
|
|
15
|
+
import { Button, Chip } from "@ldkj/web-ui";
|
|
16
|
+
|
|
17
|
+
export default function App() {
|
|
18
|
+
return (
|
|
19
|
+
<div className="p-4">
|
|
20
|
+
<Button variant="primary">Hello World</Button>
|
|
21
|
+
<Chip variant="success" size="sm">
|
|
22
|
+
Ready
|
|
23
|
+
</Chip>
|
|
24
|
+
</div>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ldkj/web-ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "xfwang <wangxiaofeng@xjldkj.com>",
|
|
6
6
|
"description": "React component library built with shadcn-ui patterns and VitePress docs.",
|
|
@@ -20,5 +20,8 @@
|
|
|
20
20
|
"react": "^18.3.0 || ^19.0.0",
|
|
21
21
|
"react-dom": "^18.3.0 || ^19.0.0"
|
|
22
22
|
},
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"**/*.css"
|
|
25
|
+
],
|
|
23
26
|
"license": "MIT"
|
|
24
27
|
}
|