nicklabs-ui 1.0.38 → 1.0.40
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 +11 -4
- package/dist/index.mjs +174 -170
- package/dist/nicklabs-ui.css +1 -1
- package/dist/src/components/NSwitch.vue.d.ts +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
A Vue 3 component library with glassmorphism design, built for modern web applications.
|
|
4
4
|
|
|
5
|
-
**Version**: 1.0.
|
|
5
|
+
**Version**: 1.0.39 | **Framework**: Vue 3.5+
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -526,7 +526,8 @@ Animated toggle switch.
|
|
|
526
526
|
| `modelValue` | `boolean` | `false` | Bound value (v-model) |
|
|
527
527
|
| `disabled` | `boolean` | `false` | Disable switch |
|
|
528
528
|
| `size` | `"sm" \| "md" \| "lg"` | `"md"` | Switch size |
|
|
529
|
-
| `
|
|
529
|
+
| `title` | `string` | — | Label above the switch |
|
|
530
|
+
| `inline` | `boolean` | `false` | Display title and switch on the same line |
|
|
530
531
|
|
|
531
532
|
**Events**
|
|
532
533
|
|
|
@@ -539,8 +540,14 @@ Animated toggle switch.
|
|
|
539
540
|
|
|
540
541
|
```vue
|
|
541
542
|
<template>
|
|
542
|
-
|
|
543
|
-
<NSwitch v-model="
|
|
543
|
+
<!-- Basic -->
|
|
544
|
+
<NSwitch v-model="enabled" />
|
|
545
|
+
|
|
546
|
+
<!-- With title (stacked) -->
|
|
547
|
+
<NSwitch v-model="enabled" title="Enable notifications" />
|
|
548
|
+
|
|
549
|
+
<!-- Inline title -->
|
|
550
|
+
<NSwitch v-model="darkMode" title="Dark mode" size="lg" inline />
|
|
544
551
|
</template>
|
|
545
552
|
|
|
546
553
|
<script setup>
|