@primevue/mcp 4.5.5 → 5.0.0-rc.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/LICENSE.md +45 -21
- package/README.md +48 -250
- package/data/components.json +47269 -0
- package/data/llms/components/accordion.md +629 -0
- package/data/llms/components/animateonscroll.md +165 -0
- package/data/llms/components/autocomplete.md +995 -0
- package/data/llms/components/avatar.md +264 -0
- package/data/llms/components/badge.md +200 -0
- package/data/llms/components/blockui.md +99 -0
- package/data/llms/components/breadcrumb.md +269 -0
- package/data/llms/components/button.md +902 -0
- package/data/llms/components/card.md +209 -0
- package/data/llms/components/carousel.md +506 -0
- package/data/llms/components/cascadeselect.md +1207 -0
- package/data/llms/components/chart.md +1022 -0
- package/data/llms/components/checkbox.md +401 -0
- package/data/llms/components/chip.md +206 -0
- package/data/llms/components/colorpicker.md +213 -0
- package/data/llms/components/commandmenu.md +660 -0
- package/data/llms/components/compare.md +407 -0
- package/data/llms/components/confirmdialog.md +343 -0
- package/data/llms/components/confirmpopup.md +252 -0
- package/data/llms/components/contextmenu.md +522 -0
- package/data/llms/components/datatable.md +5266 -0
- package/data/llms/components/dataview.md +569 -0
- package/data/llms/components/datepicker.md +964 -0
- package/data/llms/components/deferredcontent.md +96 -0
- package/data/llms/components/dialog.md +702 -0
- package/data/llms/components/divider.md +152 -0
- package/data/llms/components/dock.md +488 -0
- package/data/llms/components/drawer.md +469 -0
- package/data/llms/components/dynamicdialog.md +214 -0
- package/data/llms/components/editor.md +205 -0
- package/data/llms/components/fieldset.md +253 -0
- package/data/llms/components/fileupload.md +459 -0
- package/data/llms/components/floatlabel.md +144 -0
- package/data/llms/components/fluid.md +104 -0
- package/data/llms/components/focustrap.md +59 -0
- package/data/llms/components/forms.md +344 -0
- package/data/llms/components/galleria.md +1119 -0
- package/data/llms/components/gallery.md +1003 -0
- package/data/llms/components/iconfield.md +283 -0
- package/data/llms/components/iftalabel.md +96 -0
- package/data/llms/components/image.md +179 -0
- package/data/llms/components/imagecompare.md +108 -0
- package/data/llms/components/inplace.md +183 -0
- package/data/llms/components/inputcolor.md +869 -0
- package/data/llms/components/inputgroup.md +419 -0
- package/data/llms/components/inputmask.md +345 -0
- package/data/llms/components/inputnumber.md +551 -0
- package/data/llms/components/inputotp.md +345 -0
- package/data/llms/components/inputpassword.md +738 -0
- package/data/llms/components/inputtags.md +432 -0
- package/data/llms/components/inputtext.md +569 -0
- package/data/llms/components/installation.md +1 -0
- package/data/llms/components/keyfilter.md +116 -0
- package/data/llms/components/knob.md +318 -0
- package/data/llms/components/label.md +151 -0
- package/data/llms/components/laravel.md +53 -0
- package/data/llms/components/listbox.md +636 -0
- package/data/llms/components/mask.md +203 -0
- package/data/llms/components/mcp.md +39 -0
- package/data/llms/components/megamenu.md +563 -0
- package/data/llms/components/menu.md +651 -0
- package/data/llms/components/menubar.md +446 -0
- package/data/llms/components/message.md +497 -0
- package/data/llms/components/metergroup.md +281 -0
- package/data/llms/components/multiselect.md +752 -0
- package/data/llms/components/orderlist.md +224 -0
- package/data/llms/components/organizationchart.md +418 -0
- package/data/llms/components/paginator.md +221 -0
- package/data/llms/components/panel.md +321 -0
- package/data/llms/components/panelmenu.md +703 -0
- package/data/llms/components/password.md +657 -0
- package/data/llms/components/picklist.md +286 -0
- package/data/llms/components/popover.md +145 -0
- package/data/llms/components/progressbar.md +242 -0
- package/data/llms/components/progressspinner.md +104 -0
- package/data/llms/components/radiobutton.md +427 -0
- package/data/llms/components/rating.md +312 -0
- package/data/llms/components/ripple.md +91 -0
- package/data/llms/components/scrollarea.md +700 -0
- package/data/llms/components/scrollpanel.md +131 -0
- package/data/llms/components/scrolltop.md +87 -0
- package/data/llms/components/select.md +1251 -0
- package/data/llms/components/selectbutton.md +268 -0
- package/data/llms/components/sidebar.md +2232 -0
- package/data/llms/components/skeleton.md +302 -0
- package/data/llms/components/slider.md +416 -0
- package/data/llms/components/speeddial.md +402 -0
- package/data/llms/components/splitbutton.md +840 -0
- package/data/llms/components/splitter.md +447 -0
- package/data/llms/components/stepper.md +551 -0
- package/data/llms/components/styleclass.md +226 -0
- package/data/llms/components/tabs.md +609 -0
- package/data/llms/components/tag.md +178 -0
- package/data/llms/components/terminal.md +123 -0
- package/data/llms/components/textarea.md +519 -0
- package/data/llms/components/tieredmenu.md +578 -0
- package/data/llms/components/timeline.md +494 -0
- package/data/llms/components/toast.md +472 -0
- package/data/llms/components/togglebutton.md +276 -0
- package/data/llms/components/toggleswitch.md +271 -0
- package/data/llms/components/toolbar.md +140 -0
- package/data/llms/components/tooltip.md +160 -0
- package/data/llms/components/tree.md +1076 -0
- package/data/llms/components/treeselect.md +660 -0
- package/data/llms/components/treetable.md +2493 -0
- package/data/llms/components/virtualscroller.md +265 -0
- package/data/llms/guides/autoimport.md +28 -0
- package/data/llms/guides/cdn.md +72 -0
- package/data/llms/guides/configuration.md +158 -0
- package/data/llms/guides/customicons.md +67 -0
- package/data/llms/guides/guides/accessibility.md +27 -0
- package/data/llms/guides/guides/animations.md +119 -0
- package/data/llms/guides/guides/rtl.md +7 -0
- package/data/llms/guides/icons.md +136 -0
- package/data/llms/guides/installation.md +3 -0
- package/data/llms/guides/laravel.md +66 -0
- package/data/llms/guides/llms.md +15 -0
- package/data/llms/guides/mcp.md +104 -0
- package/data/llms/guides/migration/v4.md +15 -0
- package/data/llms/guides/migration/v5.md +15 -0
- package/data/llms/guides/nuxt.md +141 -0
- package/data/llms/guides/passthrough.md +137 -0
- package/data/llms/guides/primeclt.md +43 -0
- package/data/llms/guides/tailwind.md +151 -0
- package/data/llms/guides/theming/styled.md +497 -0
- package/data/llms/guides/theming/unstyled.md +57 -0
- package/data/llms/guides/uikit.md +3 -0
- package/data/llms/guides/vite.md +90 -0
- package/data/llms/llms-full.txt +54465 -0
- package/data/llms/llms.txt +132 -0
- package/data/llms/pages/accessibility.md +27 -0
- package/data/llms/pages/animations.md +119 -0
- package/data/llms/pages/autoimport.md +28 -0
- package/data/llms/pages/cdn.md +72 -0
- package/data/llms/pages/configuration.md +158 -0
- package/data/llms/pages/contribution.md +31 -0
- package/data/llms/pages/customicons.md +67 -0
- package/data/llms/pages/designer.md +79 -0
- package/data/llms/pages/dynamicimports.md +7 -0
- package/data/llms/pages/forms.md +63 -0
- package/data/llms/pages/guides/accessibility.md +27 -0
- package/data/llms/pages/guides/animations.md +119 -0
- package/data/llms/pages/guides/rtl.md +7 -0
- package/data/llms/pages/icons.md +136 -0
- package/data/llms/pages/installation.md +3 -0
- package/data/llms/pages/introduction.md +23 -0
- package/data/llms/pages/laravel.md +66 -0
- package/data/llms/pages/llms.md +15 -0
- package/data/llms/pages/mcp.md +104 -0
- package/data/llms/pages/migration/v4.md +15 -0
- package/data/llms/pages/migration/v5.md +15 -0
- package/data/llms/pages/nuxt.md +141 -0
- package/data/llms/pages/passthrough.md +137 -0
- package/data/llms/pages/primeclt.md +43 -0
- package/data/llms/pages/rtl.md +7 -0
- package/data/llms/pages/setup.md +3 -0
- package/data/llms/pages/styled.md +497 -0
- package/data/llms/pages/tailwind.md +151 -0
- package/data/llms/pages/theming/styled.md +497 -0
- package/data/llms/pages/theming/unstyled.md +57 -0
- package/data/llms/pages/uikit.md +3 -0
- package/data/llms/pages/unstyled.md +57 -0
- package/data/llms/pages/v4.md +15 -0
- package/data/llms/pages/v5.md +15 -0
- package/data/llms/pages/vite.md +90 -0
- package/data/manifest.json +11117 -0
- package/data/mcp-data.json +55940 -0
- package/dist/index.d.ts +17 -1
- package/dist/index.js +66066 -72541
- package/package.json +10 -12
|
@@ -0,0 +1,551 @@
|
|
|
1
|
+
# Stepper
|
|
2
|
+
|
|
3
|
+
The Stepper component displays a wizard-like workflow by guiding users through the multi-step progression.
|
|
4
|
+
|
|
5
|
+
## Horizontal
|
|
6
|
+
|
|
7
|
+
Stepper consists of a combination of StepList , Step , StepPanels and StepPanel components. The value property is essential for associating Step and StepPanel with each other.
|
|
8
|
+
|
|
9
|
+
```vue
|
|
10
|
+
<template>
|
|
11
|
+
<div class="flex justify-center">
|
|
12
|
+
<Stepper value="1" class="basis-200 min-w-0">
|
|
13
|
+
<StepList>
|
|
14
|
+
<Step value="1">Header I</Step>
|
|
15
|
+
<Step value="2">Header II</Step>
|
|
16
|
+
<Step value="3">Header III</Step>
|
|
17
|
+
</StepList>
|
|
18
|
+
<StepPanels>
|
|
19
|
+
<StepPanel v-slot="{ activateCallback }" value="1">
|
|
20
|
+
<div class="flex flex-col h-48">
|
|
21
|
+
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded-sm bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium text-sm">Content I</div>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="flex pt-5 justify-end">
|
|
24
|
+
<Button @click="activateCallback('2')">
|
|
25
|
+
Next
|
|
26
|
+
<ArrowRight />
|
|
27
|
+
</Button>
|
|
28
|
+
</div>
|
|
29
|
+
</StepPanel>
|
|
30
|
+
<StepPanel v-slot="{ activateCallback }" value="2">
|
|
31
|
+
<div class="flex flex-col h-48">
|
|
32
|
+
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded-sm bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium text-sm">Content II</div>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="flex pt-5 justify-between">
|
|
35
|
+
<Button severity="secondary" @click="activateCallback('1')">
|
|
36
|
+
<ArrowLeft />
|
|
37
|
+
Back
|
|
38
|
+
</Button>
|
|
39
|
+
<Button @click="activateCallback('3')">
|
|
40
|
+
Next
|
|
41
|
+
<ArrowRight />
|
|
42
|
+
</Button>
|
|
43
|
+
</div>
|
|
44
|
+
</StepPanel>
|
|
45
|
+
<StepPanel v-slot="{ activateCallback }" value="3">
|
|
46
|
+
<div class="flex flex-col h-48">
|
|
47
|
+
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded-sm bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium text-sm">Content III</div>
|
|
48
|
+
</div>
|
|
49
|
+
<div class="pt-5">
|
|
50
|
+
<Button severity="secondary" @click="activateCallback('2')">
|
|
51
|
+
<ArrowLeft />
|
|
52
|
+
Back
|
|
53
|
+
</Button>
|
|
54
|
+
</div>
|
|
55
|
+
</StepPanel>
|
|
56
|
+
</StepPanels>
|
|
57
|
+
</Stepper>
|
|
58
|
+
</div>
|
|
59
|
+
</template>
|
|
60
|
+
|
|
61
|
+
<script setup>
|
|
62
|
+
import ArrowLeft from '@primeicons/vue/arrow-left';
|
|
63
|
+
import ArrowRight from '@primeicons/vue/arrow-right';
|
|
64
|
+
<\/script>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Vertical
|
|
68
|
+
|
|
69
|
+
Vertical layout requires StepItem as a wrapper of Step and StepPanel components.
|
|
70
|
+
|
|
71
|
+
```vue
|
|
72
|
+
<template>
|
|
73
|
+
<div>
|
|
74
|
+
<Stepper value="1">
|
|
75
|
+
<StepItem value="1">
|
|
76
|
+
<Step>Header I</Step>
|
|
77
|
+
<StepPanel v-slot="{ activateCallback }">
|
|
78
|
+
<div class="flex flex-col h-48">
|
|
79
|
+
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded-sm bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium text-sm">Content I</div>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="py-5">
|
|
82
|
+
<Button @click="activateCallback('2')">Next</Button>
|
|
83
|
+
</div>
|
|
84
|
+
</StepPanel>
|
|
85
|
+
</StepItem>
|
|
86
|
+
<StepItem value="2">
|
|
87
|
+
<Step>Header II</Step>
|
|
88
|
+
<StepPanel v-slot="{ activateCallback }">
|
|
89
|
+
<div class="flex flex-col h-48">
|
|
90
|
+
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded-sm bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium text-sm">Content II</div>
|
|
91
|
+
</div>
|
|
92
|
+
<div class="flex py-5 gap-2">
|
|
93
|
+
<Button severity="secondary" @click="activateCallback('1')">Back</Button>
|
|
94
|
+
<Button @click="activateCallback('3')">Next</Button>
|
|
95
|
+
</div>
|
|
96
|
+
</StepPanel>
|
|
97
|
+
</StepItem>
|
|
98
|
+
<StepItem value="3">
|
|
99
|
+
<Step>Header III</Step>
|
|
100
|
+
<StepPanel v-slot="{ activateCallback }">
|
|
101
|
+
<div class="flex flex-col h-48">
|
|
102
|
+
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded-sm bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium text-sm">Content III</div>
|
|
103
|
+
</div>
|
|
104
|
+
<div class="py-5">
|
|
105
|
+
<Button severity="secondary" @click="activateCallback('2')">Back</Button>
|
|
106
|
+
</div>
|
|
107
|
+
</StepPanel>
|
|
108
|
+
</StepItem>
|
|
109
|
+
</Stepper>
|
|
110
|
+
</div>
|
|
111
|
+
</template>
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## Linear
|
|
115
|
+
|
|
116
|
+
When linear property is present, current step must be completed in order to move to the next step.
|
|
117
|
+
|
|
118
|
+
```vue
|
|
119
|
+
<template>
|
|
120
|
+
<div class="flex justify-center">
|
|
121
|
+
<Stepper value="1" linear class="basis-200 min-w-0">
|
|
122
|
+
<StepList>
|
|
123
|
+
<Step value="1">Header I</Step>
|
|
124
|
+
<Step value="2">Header II</Step>
|
|
125
|
+
<Step value="3">Header III</Step>
|
|
126
|
+
</StepList>
|
|
127
|
+
<StepPanels>
|
|
128
|
+
<StepPanel v-slot="{ activateCallback }" value="1">
|
|
129
|
+
<div class="flex flex-col h-48">
|
|
130
|
+
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded-sm bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium text-sm">Content I</div>
|
|
131
|
+
</div>
|
|
132
|
+
<div class="flex pt-5 justify-end">
|
|
133
|
+
<Button @click="activateCallback('2')">
|
|
134
|
+
Next
|
|
135
|
+
<ArrowRight />
|
|
136
|
+
</Button>
|
|
137
|
+
</div>
|
|
138
|
+
</StepPanel>
|
|
139
|
+
<StepPanel v-slot="{ activateCallback }" value="2">
|
|
140
|
+
<div class="flex flex-col h-48">
|
|
141
|
+
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded-sm bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium text-sm">Content II</div>
|
|
142
|
+
</div>
|
|
143
|
+
<div class="flex pt-5 justify-between">
|
|
144
|
+
<Button severity="secondary" @click="activateCallback('1')">
|
|
145
|
+
<ArrowLeft />
|
|
146
|
+
Back
|
|
147
|
+
</Button>
|
|
148
|
+
<Button @click="activateCallback('3')">
|
|
149
|
+
Next
|
|
150
|
+
<ArrowRight />
|
|
151
|
+
</Button>
|
|
152
|
+
</div>
|
|
153
|
+
</StepPanel>
|
|
154
|
+
<StepPanel v-slot="{ activateCallback }" value="3">
|
|
155
|
+
<div class="flex flex-col h-48">
|
|
156
|
+
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded-sm bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium text-sm">Content III</div>
|
|
157
|
+
</div>
|
|
158
|
+
<div class="pt-5">
|
|
159
|
+
<Button severity="secondary" @click="activateCallback('2')">
|
|
160
|
+
<ArrowLeft />
|
|
161
|
+
Back
|
|
162
|
+
</Button>
|
|
163
|
+
</div>
|
|
164
|
+
</StepPanel>
|
|
165
|
+
</StepPanels>
|
|
166
|
+
</Stepper>
|
|
167
|
+
</div>
|
|
168
|
+
</template>
|
|
169
|
+
|
|
170
|
+
<script setup>
|
|
171
|
+
import ArrowLeft from '@primeicons/vue/arrow-left';
|
|
172
|
+
import ArrowRight from '@primeicons/vue/arrow-right';
|
|
173
|
+
<\/script>
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
## Steps Only
|
|
177
|
+
|
|
178
|
+
Use Stepper with a StepList only for custom requirements where a progress indicator is needed.
|
|
179
|
+
|
|
180
|
+
```vue
|
|
181
|
+
<template>
|
|
182
|
+
<div class="flex justify-center">
|
|
183
|
+
<Stepper value="1" class="basis-200 min-w-0">
|
|
184
|
+
<StepList>
|
|
185
|
+
<Step value="1">Design</Step>
|
|
186
|
+
<Step value="2">Development</Step>
|
|
187
|
+
<Step value="3">QA</Step>
|
|
188
|
+
</StepList>
|
|
189
|
+
</Stepper>
|
|
190
|
+
</div>
|
|
191
|
+
</template>
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
## Template
|
|
195
|
+
|
|
196
|
+
Custom content for a step is defined with the default slot. The optional as property controls the default container element of a step, for example setting it to a button renders a button for the header instead of a div. The asChild option enables the headless mode for further customization by passing callbacks and properties to implement your own step.
|
|
197
|
+
|
|
198
|
+
```vue
|
|
199
|
+
<template>
|
|
200
|
+
<div class="flex justify-center">
|
|
201
|
+
<Stepper v-model:value="activeStep" class="basis-160 min-w-0">
|
|
202
|
+
<StepList>
|
|
203
|
+
<Step v-slot="{ activateCallback, value, a11yAttrs }" asChild :value="1">
|
|
204
|
+
<div class="flex flex-row flex-auto gap-2" v-bind="a11yAttrs.root">
|
|
205
|
+
<button class="bg-transparent border-0 inline-flex flex-col gap-2" @click="activateCallback" v-bind="a11yAttrs.header">
|
|
206
|
+
<span
|
|
207
|
+
:class="[ 'rounded-full border-2 w-12 h-12 inline-flex items-center justify-center', { 'bg-primary text-primary-contrast border-primary': value <= activeStep, 'border-surface-200 dark:border-surface-700': value > activeStep } ]"
|
|
208
|
+
>
|
|
209
|
+
<User />
|
|
210
|
+
</span>
|
|
211
|
+
</button>
|
|
212
|
+
<Divider />
|
|
213
|
+
</div>
|
|
214
|
+
</Step>
|
|
215
|
+
<Step v-slot="{ activateCallback, value, a11yAttrs }" asChild :value="2">
|
|
216
|
+
<div class="flex flex-row flex-auto gap-2 pl-2" v-bind="a11yAttrs.root">
|
|
217
|
+
<button class="bg-transparent border-0 inline-flex flex-col gap-2" @click="activateCallback" v-bind="a11yAttrs.header">
|
|
218
|
+
<span
|
|
219
|
+
:class="[ 'rounded-full border-2 w-12 h-12 inline-flex items-center justify-center', { 'bg-primary text-primary-contrast border-primary': value <= activeStep, 'border-surface-200 dark:border-surface-700': value > activeStep } ]"
|
|
220
|
+
>
|
|
221
|
+
<Star />
|
|
222
|
+
</span>
|
|
223
|
+
</button>
|
|
224
|
+
<Divider />
|
|
225
|
+
</div>
|
|
226
|
+
</Step>
|
|
227
|
+
<Step v-slot="{ activateCallback, value, a11yAttrs }" asChild :value="3">
|
|
228
|
+
<div class="flex flex-row pl-2" v-bind="a11yAttrs.root">
|
|
229
|
+
<button class="bg-transparent border-0 inline-flex flex-col gap-2" @click="activateCallback" v-bind="a11yAttrs.header">
|
|
230
|
+
<span
|
|
231
|
+
:class="[ 'rounded-full border-2 w-12 h-12 inline-flex items-center justify-center', { 'bg-primary text-primary-contrast border-primary': value <= activeStep, 'border-surface-200 dark:border-surface-700': value > activeStep } ]"
|
|
232
|
+
>
|
|
233
|
+
<IdCard />
|
|
234
|
+
</span>
|
|
235
|
+
</button>
|
|
236
|
+
</div>
|
|
237
|
+
</Step>
|
|
238
|
+
</StepList>
|
|
239
|
+
<StepPanels>
|
|
240
|
+
<StepPanel v-slot="{ activateCallback }" :value="1">
|
|
241
|
+
<div class="flex flex-col gap-2 mx-auto" style="min-height: 16rem; max-width: 20rem">
|
|
242
|
+
<div class="text-center mt-4 mb-4 text-lg font-semibold">Create your account</div>
|
|
243
|
+
<div class="field">
|
|
244
|
+
<InputText id="input" v-model="name" type="text" placeholder="Name" fluid />
|
|
245
|
+
</div>
|
|
246
|
+
<div class="field">
|
|
247
|
+
<InputText id="email" v-model="email" type="email" placeholder="Email" fluid />
|
|
248
|
+
</div>
|
|
249
|
+
<div class="field">
|
|
250
|
+
<Password v-model="password" placeholder="Password" fluid />
|
|
251
|
+
</div>
|
|
252
|
+
</div>
|
|
253
|
+
<div class="flex pt-5 justify-end">
|
|
254
|
+
<Button @click="activateCallback(2)">
|
|
255
|
+
Next
|
|
256
|
+
<ArrowRight />
|
|
257
|
+
</Button>
|
|
258
|
+
</div>
|
|
259
|
+
</StepPanel>
|
|
260
|
+
<StepPanel v-slot="{ activateCallback }" :value="2">
|
|
261
|
+
<div class="flex flex-col gap-2 mx-auto" style="min-height: 16rem; max-width: 24rem">
|
|
262
|
+
<div class="text-center mt-4 mb-4 text-lg font-semibold">Choose your interests</div>
|
|
263
|
+
<div class="flex flex-wrap justify-center gap-4">
|
|
264
|
+
<ToggleButton v-model="option1" onLabel="Nature" offLabel="Nature" />
|
|
265
|
+
<ToggleButton v-model="option2" onLabel="Art" offLabel="Art" />
|
|
266
|
+
<ToggleButton v-model="option3" onLabel="Music" offLabel="Music" />
|
|
267
|
+
<ToggleButton v-model="option4" onLabel="Design" offLabel="Design" />
|
|
268
|
+
<ToggleButton v-model="option5" onLabel="Photography" offLabel="Photography" />
|
|
269
|
+
<ToggleButton v-model="option6" onLabel="Movies" offLabel="Movies" />
|
|
270
|
+
<ToggleButton v-model="option7" onLabel="Sports" offLabel="Sports" />
|
|
271
|
+
<ToggleButton v-model="option8" onLabel="Gaming" offLabel="Gaming" />
|
|
272
|
+
<ToggleButton v-model="option9" onLabel="Traveling" offLabel="Traveling" />
|
|
273
|
+
<ToggleButton v-model="option10" onLabel="Dancing" offLabel="Dancing" />
|
|
274
|
+
</div>
|
|
275
|
+
</div>
|
|
276
|
+
<div class="flex pt-5 justify-between">
|
|
277
|
+
<Button severity="secondary" @click="activateCallback(1)">
|
|
278
|
+
<ArrowLeft />
|
|
279
|
+
Back
|
|
280
|
+
</Button>
|
|
281
|
+
<Button @click="activateCallback(3)">
|
|
282
|
+
Next
|
|
283
|
+
<ArrowRight />
|
|
284
|
+
</Button>
|
|
285
|
+
</div>
|
|
286
|
+
</StepPanel>
|
|
287
|
+
<StepPanel v-slot="{ activateCallback }" :value="3">
|
|
288
|
+
<div class="flex flex-col gap-2 mx-auto" style="min-height: 16rem; max-width: 24rem">
|
|
289
|
+
<div class="text-center mt-4 mb-4 text-lg font-semibold">Account created successfully</div>
|
|
290
|
+
<div class="flex justify-center">
|
|
291
|
+
<img alt="logo" src="https://primefaces.org/cdn/primevue/images/stepper/content.svg" />
|
|
292
|
+
</div>
|
|
293
|
+
</div>
|
|
294
|
+
<div class="flex pt-5 justify-start">
|
|
295
|
+
<Button severity="secondary" @click="activateCallback(2)">
|
|
296
|
+
<ArrowLeft />
|
|
297
|
+
Back
|
|
298
|
+
</Button>
|
|
299
|
+
</div>
|
|
300
|
+
</StepPanel>
|
|
301
|
+
</StepPanels>
|
|
302
|
+
</Stepper>
|
|
303
|
+
</div>
|
|
304
|
+
</template>
|
|
305
|
+
|
|
306
|
+
<script setup>
|
|
307
|
+
import ArrowLeft from '@primeicons/vue/arrow-left';
|
|
308
|
+
import ArrowRight from '@primeicons/vue/arrow-right';
|
|
309
|
+
import IdCard from '@primeicons/vue/id-card';
|
|
310
|
+
import Star from '@primeicons/vue/star';
|
|
311
|
+
import User from '@primeicons/vue/user';
|
|
312
|
+
import { ref } from 'vue';
|
|
313
|
+
|
|
314
|
+
const activeStep = ref(1);
|
|
315
|
+
const name = ref();
|
|
316
|
+
const email = ref();
|
|
317
|
+
const password = ref();
|
|
318
|
+
const option1 = ref(false);
|
|
319
|
+
const option2 = ref(false);
|
|
320
|
+
const option3 = ref(false);
|
|
321
|
+
const option4 = ref(false);
|
|
322
|
+
const option5 = ref(false);
|
|
323
|
+
const option6 = ref(false);
|
|
324
|
+
const option7 = ref(false);
|
|
325
|
+
const option8 = ref(false);
|
|
326
|
+
const option9 = ref(false);
|
|
327
|
+
const option10 = ref(false);
|
|
328
|
+
|
|
329
|
+
<\/script>
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
## Accessibility
|
|
333
|
+
|
|
334
|
+
Screen Reader Stepper container is defined with the tablist role, as any attribute is passed to the container element aria-labelledby can be optionally used to specify an element to describe the Stepper. Each stepper header has a tab role and aria-controls to refer to the corresponding stepper content element. The content element of each stepper has tabpanel role, an id to match the aria-controls of the header and aria-labelledby reference to the header as the accessible name. Tab Header Keyboard Support Key Function tab Moves focus through the header. enter Activates the focused stepper header. space Activates the focused stepper header.
|
|
335
|
+
|
|
336
|
+
## Stepper API
|
|
337
|
+
|
|
338
|
+
### Props
|
|
339
|
+
|
|
340
|
+
| Name |Type |Default |Description |
|
|
341
|
+
| --- | --- | --- | --- |
|
|
342
|
+
| value | string \| number | null | Active value of stepper. |
|
|
343
|
+
| linear | boolean | false | Whether the steps are clickable or not. |
|
|
344
|
+
| dt | any | - | It generates scoped CSS variables using design tokens for the component. |
|
|
345
|
+
| pt | PassThrough<StepperPassThroughOptions> | - | Used to pass attributes to DOM elements inside the component. |
|
|
346
|
+
| ptOptions | any | - | Used to configure passthrough(pt) options of the component. |
|
|
347
|
+
| unstyled | boolean | false | When enabled, it removes component related styles in the core. |
|
|
348
|
+
|
|
349
|
+
### Pass Through Options
|
|
350
|
+
|
|
351
|
+
| Name |Type |Description |
|
|
352
|
+
| --- | --- | --- |
|
|
353
|
+
| root | StepperPassThroughOptionType | Used to pass attributes to the root's DOM element. |
|
|
354
|
+
| separator | StepperPassThroughOptionType | Used to pass attributes to the separator's DOM element. |
|
|
355
|
+
| hooks | any | Used to manage all lifecycle hooks. |
|
|
356
|
+
|
|
357
|
+
### Theming
|
|
358
|
+
|
|
359
|
+
### CSS Classes
|
|
360
|
+
|
|
361
|
+
| Class |Description |
|
|
362
|
+
| --- | --- |
|
|
363
|
+
| p-stepper | Class name of the root element |
|
|
364
|
+
| p-stepper-separator | Class name of the separator element |
|
|
365
|
+
|
|
366
|
+
### Design Tokens
|
|
367
|
+
|
|
368
|
+
| Token |CSS Variable |Description |
|
|
369
|
+
| --- | --- | --- |
|
|
370
|
+
| stepper.transition.duration | --p-stepper-transition-duration | Transition duration of root |
|
|
371
|
+
| stepper.separator.background | --p-stepper-separator-background | Background of separator |
|
|
372
|
+
| stepper.separator.active.background | --p-stepper-separator-active-background | Active background of separator |
|
|
373
|
+
| stepper.separator.margin | --p-stepper-separator-margin | Margin of separator |
|
|
374
|
+
| stepper.separator.size | --p-stepper-separator-size | Size of separator |
|
|
375
|
+
| stepper.step.padding | --p-stepper-step-padding | Padding of step |
|
|
376
|
+
| stepper.step.gap | --p-stepper-step-gap | Gap of step |
|
|
377
|
+
| stepper.step.header.padding | --p-stepper-step-header-padding | Padding of step header |
|
|
378
|
+
| stepper.step.header.border.radius | --p-stepper-step-header-border-radius | Border radius of step header |
|
|
379
|
+
| stepper.step.header.focus.ring.width | --p-stepper-step-header-focus-ring-width | Focus ring width of step header |
|
|
380
|
+
| stepper.step.header.focus.ring.style | --p-stepper-step-header-focus-ring-style | Focus ring style of step header |
|
|
381
|
+
| stepper.step.header.focus.ring.color | --p-stepper-step-header-focus-ring-color | Focus ring color of step header |
|
|
382
|
+
| stepper.step.header.focus.ring.offset | --p-stepper-step-header-focus-ring-offset | Focus ring offset of step header |
|
|
383
|
+
| stepper.step.header.focus.ring.shadow | --p-stepper-step-header-focus-ring-shadow | Focus ring shadow of step header |
|
|
384
|
+
| stepper.step.header.gap | --p-stepper-step-header-gap | Gap of step header |
|
|
385
|
+
| stepper.step.title.color | --p-stepper-step-title-color | Color of step title |
|
|
386
|
+
| stepper.step.title.active.color | --p-stepper-step-title-active-color | Active color of step title |
|
|
387
|
+
| stepper.step.title.font.weight | --p-stepper-step-title-font-weight | Font weight of step title |
|
|
388
|
+
| stepper.step.title.font.size | --p-stepper-step-title-font-size | Font size of step title |
|
|
389
|
+
| stepper.step.number.background | --p-stepper-step-number-background | Background of step number |
|
|
390
|
+
| stepper.step.number.active.background | --p-stepper-step-number-active-background | Active background of step number |
|
|
391
|
+
| stepper.step.number.border.color | --p-stepper-step-number-border-color | Border color of step number |
|
|
392
|
+
| stepper.step.number.active.border.color | --p-stepper-step-number-active-border-color | Active border color of step number |
|
|
393
|
+
| stepper.step.number.color | --p-stepper-step-number-color | Color of step number |
|
|
394
|
+
| stepper.step.number.active.color | --p-stepper-step-number-active-color | Active color of step number |
|
|
395
|
+
| stepper.step.number.size | --p-stepper-step-number-size | Size of step number |
|
|
396
|
+
| stepper.step.number.font.size | --p-stepper-step-number-font-size | Font size of step number |
|
|
397
|
+
| stepper.step.number.font.weight | --p-stepper-step-number-font-weight | Font weight of step number |
|
|
398
|
+
| stepper.step.number.border.radius | --p-stepper-step-number-border-radius | Border radius of step number |
|
|
399
|
+
| stepper.step.number.shadow | --p-stepper-step-number-shadow | Shadow of step number |
|
|
400
|
+
| stepper.steppanels.padding | --p-stepper-steppanels-padding | Padding of steppanels |
|
|
401
|
+
| stepper.steppanel.background | --p-stepper-steppanel-background | Background of steppanel |
|
|
402
|
+
| stepper.steppanel.color | --p-stepper-steppanel-color | Color of steppanel |
|
|
403
|
+
| stepper.steppanel.padding | --p-stepper-steppanel-padding | Padding of steppanel |
|
|
404
|
+
| stepper.steppanel.indent | --p-stepper-steppanel-indent | Indent of steppanel |
|
|
405
|
+
|
|
406
|
+
## Step List API
|
|
407
|
+
|
|
408
|
+
### Props
|
|
409
|
+
|
|
410
|
+
| Name |Type |Default |Description |
|
|
411
|
+
| --- | --- | --- | --- |
|
|
412
|
+
| dt | any | - | It generates scoped CSS variables using design tokens for the component. |
|
|
413
|
+
| pt | PassThrough<StepListPassThroughOptions> | - | Used to pass attributes to DOM elements inside the component. |
|
|
414
|
+
| ptOptions | any | - | Used to configure passthrough(pt) options of the component. |
|
|
415
|
+
| unstyled | boolean | false | When enabled, it removes component related styles in the core. |
|
|
416
|
+
|
|
417
|
+
### Pass Through Options
|
|
418
|
+
|
|
419
|
+
| Name |Type |Description |
|
|
420
|
+
| --- | --- | --- |
|
|
421
|
+
| root | StepListPassThroughOptionType | Used to pass attributes to the root's DOM element. |
|
|
422
|
+
| hooks | any | Used to manage all lifecycle hooks. |
|
|
423
|
+
|
|
424
|
+
### Theming
|
|
425
|
+
|
|
426
|
+
### CSS Classes
|
|
427
|
+
|
|
428
|
+
| Class |Description |
|
|
429
|
+
| --- | --- |
|
|
430
|
+
| p-steplist | Class name of the root element |
|
|
431
|
+
|
|
432
|
+
## Step Panels API
|
|
433
|
+
|
|
434
|
+
### Props
|
|
435
|
+
|
|
436
|
+
| Name |Type |Default |Description |
|
|
437
|
+
| --- | --- | --- | --- |
|
|
438
|
+
| dt | any | - | It generates scoped CSS variables using design tokens for the component. |
|
|
439
|
+
| pt | PassThrough<StepPanelsPassThroughOptions> | - | Used to pass attributes to DOM elements inside the component. |
|
|
440
|
+
| ptOptions | any | - | Used to configure passthrough(pt) options of the component. |
|
|
441
|
+
| unstyled | boolean | false | When enabled, it removes component related styles in the core. |
|
|
442
|
+
|
|
443
|
+
### Pass Through Options
|
|
444
|
+
|
|
445
|
+
| Name |Type |Description |
|
|
446
|
+
| --- | --- | --- |
|
|
447
|
+
| root | StepPanelsPassThroughOptionType | Used to pass attributes to the root's DOM element. |
|
|
448
|
+
| hooks | any | Used to manage all lifecycle hooks. |
|
|
449
|
+
|
|
450
|
+
### Theming
|
|
451
|
+
|
|
452
|
+
### CSS Classes
|
|
453
|
+
|
|
454
|
+
| Class |Description |
|
|
455
|
+
| --- | --- |
|
|
456
|
+
| p-steppanels | Class name of the root element |
|
|
457
|
+
|
|
458
|
+
## Step Item API
|
|
459
|
+
|
|
460
|
+
### Props
|
|
461
|
+
|
|
462
|
+
| Name |Type |Default |Description |
|
|
463
|
+
| --- | --- | --- | --- |
|
|
464
|
+
| value | string \| number | - | Value of step. |
|
|
465
|
+
| dt | any | - | It generates scoped CSS variables using design tokens for the component. |
|
|
466
|
+
| pt | PassThrough<StepItemPassThroughOptions> | - | Used to pass attributes to DOM elements inside the component. |
|
|
467
|
+
| ptOptions | any | - | Used to configure passthrough(pt) options of the component. |
|
|
468
|
+
| unstyled | boolean | false | When enabled, it removes component related styles in the core. |
|
|
469
|
+
|
|
470
|
+
### Pass Through Options
|
|
471
|
+
|
|
472
|
+
| Name |Type |Description |
|
|
473
|
+
| --- | --- | --- |
|
|
474
|
+
| root | StepItemPassThroughOptionType | Used to pass attributes to the root's DOM element. |
|
|
475
|
+
| hooks | any | Used to manage all lifecycle hooks. |
|
|
476
|
+
|
|
477
|
+
### Theming
|
|
478
|
+
|
|
479
|
+
### CSS Classes
|
|
480
|
+
|
|
481
|
+
| Class |Description |
|
|
482
|
+
| --- | --- |
|
|
483
|
+
| p-stepitem | Class name of the root element |
|
|
484
|
+
|
|
485
|
+
## Step API
|
|
486
|
+
|
|
487
|
+
### Props
|
|
488
|
+
|
|
489
|
+
| Name |Type |Default |Description |
|
|
490
|
+
| --- | --- | --- | --- |
|
|
491
|
+
| value | string \| number | - | Value of step. |
|
|
492
|
+
| disabled | boolean | false | Whether the step is disabled. |
|
|
493
|
+
| as | string \| Component | BUTTON | Use to change the HTML tag of root element. |
|
|
494
|
+
| asChild | boolean | false | When enabled, it changes the default rendered element for the one passed as a child element. |
|
|
495
|
+
| dt | any | - | It generates scoped CSS variables using design tokens for the component. |
|
|
496
|
+
| pt | PassThrough<StepPassThroughOptions> | - | Used to pass attributes to DOM elements inside the component. |
|
|
497
|
+
| ptOptions | any | - | Used to configure passthrough(pt) options of the component. |
|
|
498
|
+
| unstyled | boolean | false | When enabled, it removes component related styles in the core. |
|
|
499
|
+
|
|
500
|
+
### Pass Through Options
|
|
501
|
+
|
|
502
|
+
| Name |Type |Description |
|
|
503
|
+
| --- | --- | --- |
|
|
504
|
+
| root | StepPassThroughOptionType | Used to pass attributes to the root's DOM element. |
|
|
505
|
+
| header | StepPassThroughOptionType | Used to pass attributes to the header's DOM element. |
|
|
506
|
+
| number | StepPassThroughOptionType | Used to pass attributes to the number's DOM element. |
|
|
507
|
+
| title | StepPassThroughOptionType | Used to pass attributes to the title's DOM element. |
|
|
508
|
+
| hooks | any | Used to manage all lifecycle hooks. |
|
|
509
|
+
|
|
510
|
+
### Theming
|
|
511
|
+
|
|
512
|
+
### CSS Classes
|
|
513
|
+
|
|
514
|
+
| Class |Description |
|
|
515
|
+
| --- | --- |
|
|
516
|
+
| p-step | Class name of the root element |
|
|
517
|
+
| p-step-header | Class name of the header element |
|
|
518
|
+
| p-step-number | Class name of the number element |
|
|
519
|
+
| p-step-title | Class name of the title element |
|
|
520
|
+
|
|
521
|
+
## Step Panel API
|
|
522
|
+
|
|
523
|
+
### Props
|
|
524
|
+
|
|
525
|
+
| Name |Type |Default |Description |
|
|
526
|
+
| --- | --- | --- | --- |
|
|
527
|
+
| value | string \| number | - | Value of step. |
|
|
528
|
+
| as | string \| Component | BUTTON | Use to change the HTML tag of root element. |
|
|
529
|
+
| asChild | boolean | false | When enabled, it changes the default rendered element for the one passed as a child element. |
|
|
530
|
+
| dt | any | - | It generates scoped CSS variables using design tokens for the component. |
|
|
531
|
+
| pt | PassThrough<StepPanelPassThroughOptions> | - | Used to pass attributes to DOM elements inside the component. |
|
|
532
|
+
| ptOptions | any | - | Used to configure passthrough(pt) options of the component. |
|
|
533
|
+
| unstyled | boolean | false | When enabled, it removes component related styles in the core. |
|
|
534
|
+
|
|
535
|
+
### Pass Through Options
|
|
536
|
+
|
|
537
|
+
| Name |Type |Description |
|
|
538
|
+
| --- | --- | --- |
|
|
539
|
+
| root | StepPanelPassThroughOptionType | Used to pass attributes to the root's DOM element. |
|
|
540
|
+
| contentWrapper | StepPanelPassThroughOptionType | Used to pass attributes to the content's wrapper DOM element. |
|
|
541
|
+
| content | StepPanelPassThroughOptionType | Used to pass attributes to the content DOM element. |
|
|
542
|
+
| transition | StepPanelPassThroughOptionType | Used to control Vue Transition API. |
|
|
543
|
+
| hooks | any | Used to manage all lifecycle hooks. |
|
|
544
|
+
|
|
545
|
+
### Theming
|
|
546
|
+
|
|
547
|
+
### CSS Classes
|
|
548
|
+
|
|
549
|
+
| Class |Description |
|
|
550
|
+
| --- | --- |
|
|
551
|
+
| p-steppanel | Class name of the root element |
|