@cloudtower/eagle 0.29.28 → 0.29.29

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 ADDED
@@ -0,0 +1,64 @@
1
+ # CloudTower UI KIT
2
+
3
+ [storybook]: https://cloudtower-ui-kit.vercel.app
4
+ [next storybook]: https://next-cloudtower-ui-kit.vercel.app
5
+ [v3.x storybook]: https://v3xx-cloudtower-ui-kit.vercel.app
6
+ [贡献代码]: ./CONTRIBUTE.md
7
+
8
+ ## [StoryBook]
9
+
10
+ main 分支 storybook [storyBook]
11
+
12
+ next 分支 storybook [next storybook]
13
+
14
+ v3.x 分支 storybook [v3.x storybook]
15
+
16
+ ## 使用
17
+
18
+ ```tsx
19
+ import { antdKit } from "@cloudtower/eagle";
20
+ import { initParrotI18n, UIKitProvider } from "@cloudtower/eagle";
21
+ // Set Up Style
22
+ import "@cloudtower/eagle/dist/style.css";
23
+
24
+ initParrotI18n();
25
+ // Set Up Providers
26
+ ReactDOM.render(
27
+ <React.StrictMode>
28
+ <UIKitProvider>
29
+ <App />
30
+ <UIKitProvider>
31
+ </React.StrictMode>,
32
+ document.getElementById("root") as HTMLElement
33
+ );
34
+ ```
35
+
36
+ ```tsx
37
+ import { Button } from "@cloudtower/eagle";
38
+ import React, { useContext } from "react";
39
+
40
+ const App = () => {
41
+ return (
42
+ <div>
43
+ <Button
44
+ onClick={() => {
45
+ alert("hello");
46
+ }}
47
+ >
48
+ say hello
49
+ </Button>
50
+ </div>
51
+ );
52
+ };
53
+
54
+ export default App;
55
+ ```
56
+
57
+ ## 如何 [贡献代码]
58
+
59
+ - 快速开始
60
+ ```
61
+ yarn && cd packages/eagle && yarn storybook
62
+ ```
63
+
64
+ 详细参考 [贡献代码]