PluginProbe
The Innovative Form Builder – IvyForms / 1.1.1
The Innovative Form Builder – IvyForms v1.1.1
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
ivyforms / frontend / src / views / admin / testing / testing-page / TestingToggle.vue

TestingToggle.vue in The Innovative Form Builder – IvyForms 1.1.1, at frontend/src/views/admin/testing/testing-page/TestingToggle.vue

107 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <template>
2 <div class="toggle-test-page">
3 <h3>IvyToggle Props Controls</h3>
4 <div class="props-controls">
5 <!-- Model Value -->
6 <label>
7 <input v-model="modelValue" type="checkbox" />
8 Checked
9 </label>
10
11 <!-- Disabled -->
12 <label>
13 <input v-model="disabled" type="checkbox" />
14 Disabled
15 </label>
16
17 <!-- Priority -->
18 <label>
19 Priority:
20 <select v-model="priority">
21 <option value="primary">Primary</option>
22 <option value="secondary">Secondary</option>
23 <option value="amber">Amber</option>
24 </select>
25 </label>
26
27 <!-- Size -->
28 <label>
29 Size:
30 <select v-model="size">
31 <option value="s">Small</option>
32 <option value="d">Default</option>
33 <option value="l">Large</option>
34 <option value="xl">Extra Large</option>
35 </select>
36 </label>
37
38 <!-- Type -->
39 <label>
40 Type:
41 <select v-model="type">
42 <option value="fill">Fill</option>
43 <option value="stroke">Stroke</option>
44 <option value="stroke-with-text">Stroke with Text</option>
45 </select>
46 </label>
47 </div>
48
49 <hr />
50
51 <!-- IvyToggle Preview -->
52 <div class="toggle-preview">
53 <h3>IvyToggle Preview</h3>
54 <IvyToggle
55 v-model="modelValue"
56 :disabled="disabled"
57 :priority="priority"
58 :size="size"
59 :type="type"
60 />
61 </div>
62 </div>
63 </template>
64
65 <script setup lang="ts">
66 import { ref } from 'vue'
67 import IvyToggle from '@/views/_components/toggle/IvyToggle.vue'
68
69 const modelValue = ref(false)
70 const disabled = ref(false)
71 const priority = ref<'primary' | 'secondary' | 'amber'>('primary')
72 const size = ref<'s' | 'd' | 'l' | 'xl'>('d')
73 const type = ref<'fill' | 'stroke' | 'stroke-with-text'>('fill')
74 </script>
75
76 <style scoped>
77 .toggle-test-page {
78 padding: 20px;
79 }
80
81 .props-controls {
82 margin-bottom: 20px;
83 padding: 10px;
84 border: 1px solid #ddd;
85 border-radius: 6px;
86 }
87
88 .props-controls label {
89 display: block;
90 margin-bottom: 10px;
91 }
92
93 .toggle-preview {
94 margin-top: 20px;
95 }
96
97 .toggle-preview h3 {
98 margin-bottom: 20px;
99 }
100
101 hr {
102 margin: 20px 0;
103 border: none;
104 border-top: 1px solid #ddd;
105 }
106 </style>
107