sales-frontend-solution 0.0.1

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,55 @@
1
+ # @nxl-kit/api
2
+
3
+ ## 개요
4
+
5
+ `@nxl-kit/solution`는 보안키패드, v3 등 외부 리소스를 사용하는 라이브러리입니다.
6
+ ---
7
+
8
+ ## 설치 방법
9
+
10
+ ```sh
11
+ pnpm add @nxl-kit/solution
12
+ ```
13
+
14
+ ---
15
+
16
+ ## 사용 방법
17
+
18
+ ### React 컴포넌트 사용 (`Keypad`)
19
+
20
+ ```ts
21
+
22
+ import { Keypad } from "@nxl-kit/solution";
23
+
24
+ export default function Page() {
25
+ return <Keypad mode={'qwerty'} maxLength={5} inputElement={<input type="text" />} />;
26
+ }
27
+
28
+ ```
29
+
30
+ ### React 컴포넌트 사용 (`v3`)
31
+
32
+ ```ts
33
+
34
+ import { useV3, V3Provider } from "@nxl-kit/solution";
35
+
36
+ export default function Page() {
37
+ const { launch } = useV3();
38
+
39
+ useEffect(() => {
40
+ launch();
41
+ }, []);
42
+
43
+ return <V3Provider></V3Provider>;
44
+ }
45
+ ```
46
+
47
+ ---
48
+
49
+ ## 주요 기능
50
+
51
+ - React 환경에서 키패드 호출을 위한 컴포넌트 제공
52
+
53
+ - React 환경에서 v3 사용을 위한 provider, custom hook 제공
54
+
55
+ ---