tokenizer-ui-kit 0.0.6 → 0.0.7
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 +26 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,39 +13,61 @@ pnpm add tokenizer-ui-kit
|
|
|
13
13
|
## 🧩 Available Components
|
|
14
14
|
|
|
15
15
|
### Date Picker
|
|
16
|
-
|
|
17
16
|
```ts
|
|
18
17
|
import { DatePicker } from "tokenizer-ui-kit";
|
|
19
18
|
```
|
|
20
19
|
|
|
21
20
|
### Button
|
|
22
|
-
|
|
23
21
|
```ts
|
|
24
22
|
import { CButton } from "tokenizer-ui-kit";
|
|
25
23
|
```
|
|
26
24
|
|
|
27
25
|
### Circular Loader
|
|
28
|
-
|
|
29
26
|
```ts
|
|
30
27
|
import { CircularLoader } from "tokenizer-ui-kit";
|
|
31
28
|
```
|
|
32
29
|
|
|
33
30
|
## 🚀 Usage
|
|
34
31
|
|
|
32
|
+
### 1. Import components and styles
|
|
33
|
+
```vue
|
|
34
|
+
<script setup>
|
|
35
|
+
import { DatePicker, CButton, CircularLoader } from "tokenizer-ui-kit";
|
|
36
|
+
// ⚠️ IMPORTANT: Import CSS styles for proper styling
|
|
37
|
+
import "tokenizer-ui-kit/dist/tokenizer-ui-kit.css";
|
|
38
|
+
</script>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### 2. Use components
|
|
35
42
|
```vue
|
|
36
43
|
<template>
|
|
37
44
|
<div>
|
|
38
45
|
<DatePicker v-model="selectedDate" />
|
|
39
|
-
<CButton @click="handleClick">Click me</CButton>
|
|
46
|
+
<CButton @click="handleClick" color="green">Click me</CButton>
|
|
40
47
|
<CircularLoader v-if="loading" />
|
|
41
48
|
</div>
|
|
42
49
|
</template>
|
|
43
50
|
|
|
44
51
|
<script setup>
|
|
52
|
+
import { ref } from "vue";
|
|
45
53
|
import { DatePicker, CButton, CircularLoader } from "tokenizer-ui-kit";
|
|
54
|
+
import "tokenizer-ui-kit/dist/tokenizer-ui-kit.css";
|
|
55
|
+
|
|
56
|
+
const selectedDate = ref(null);
|
|
57
|
+
const loading = ref(false);
|
|
58
|
+
|
|
59
|
+
const handleClick = () => {
|
|
60
|
+
console.log("Button clicked!");
|
|
61
|
+
};
|
|
46
62
|
</script>
|
|
47
63
|
```
|
|
48
64
|
|
|
65
|
+
## ⚠️ Important Notes
|
|
66
|
+
|
|
67
|
+
- **CSS Styles**: Always import the CSS file for proper component styling
|
|
68
|
+
- **Date Picker**: Requires CSS for calendar popup to display correctly
|
|
69
|
+
- **TypeScript**: Full TypeScript support included
|
|
70
|
+
|
|
49
71
|
## 📚 Documentation
|
|
50
72
|
|
|
51
73
|
Each component comes with TypeScript support and comprehensive documentation.
|