katalyst-riya-test 0.0.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 ADDED
@@ -0,0 +1,80 @@
1
+ # Katalyst Component Library
2
+
3
+ ## Step 1: Installation
4
+
5
+ Begin by installing the Katalyst Component Library via npm:
6
+
7
+ ```bash
8
+ npm i @atomos_tech/katerpillar
9
+ ```
10
+
11
+ ## Step 2: Import CSS
12
+
13
+ Import the library's CSS in your root page to apply the default styles:
14
+
15
+ ```typescript
16
+ import "@atomos_tech/katerpillar/style";
17
+ ```
18
+
19
+ ## Step 3: Configure Tailwind
20
+
21
+ You can set up the Tailwind CSS configuration by following the instructions provided [here](tailwind.config.ts).
22
+
23
+ ## Step 4: Usage
24
+
25
+ With the library set up, you can start using the provided components. Below are examples of how to implement the Button and Chip components.
26
+
27
+ ### Import Components
28
+
29
+ Import the required components from the `@atomos_tech/katerpillar` package:
30
+
31
+ ```typescript
32
+ import { Button, Chip } from "@atomos_tech/katerpillar";
33
+ ```
34
+
35
+ ### Example Usage
36
+
37
+ Here is how you can integrate the Button and Chip into your page:
38
+
39
+ ```typescript
40
+ <Button
41
+ size={"sm"}
42
+ variant={"primary-light"}
43
+ >
44
+ Button
45
+ </Button>
46
+ <Chip
47
+ variant="primary"
48
+ size="md"
49
+ >
50
+ Primary
51
+ </Chip>
52
+ ```
53
+
54
+ ## Example Page
55
+
56
+ Here's an example of how you might set up a simple page using the library:
57
+
58
+ ```typescript
59
+ import { Button, Chip } from "@atomos_tech/katerpillar";
60
+
61
+ export default function ExamplePage() {
62
+ return (
63
+ <div className="p-4">
64
+ <h1 className="text-2xl font-bold mb-4">Katalyst Example</h1>
65
+ <Button
66
+ size={"sm"}
67
+ variant={"primary-light"}
68
+ >
69
+ Button
70
+ </Button>
71
+ <Chip
72
+ variant="primary"
73
+ size="md"
74
+ >
75
+ Primary
76
+ </Chip>
77
+ </div>
78
+ );
79
+ }
80
+ ```