@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,345 @@
|
|
|
1
|
+
# InputOtp
|
|
2
|
+
|
|
3
|
+
Input Otp is used to enter one time passwords.
|
|
4
|
+
|
|
5
|
+
## Basic
|
|
6
|
+
|
|
7
|
+
InputOtp is used with the v-model property for two-way value binding. The number of characters is defined with the length option, which is set to 4 by default.
|
|
8
|
+
|
|
9
|
+
```vue
|
|
10
|
+
<template>
|
|
11
|
+
<div class="flex justify-center">
|
|
12
|
+
<InputOtp v-model="value" />
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script setup>
|
|
17
|
+
import { ref } from 'vue';
|
|
18
|
+
|
|
19
|
+
const value = ref(null);
|
|
20
|
+
<\/script>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Controlled
|
|
24
|
+
|
|
25
|
+
InputOtp can be used as a controlled component with v-model .
|
|
26
|
+
|
|
27
|
+
```vue
|
|
28
|
+
<template>
|
|
29
|
+
<div class="flex flex-col items-center gap-6">
|
|
30
|
+
<InputOtp v-model="value" />
|
|
31
|
+
<div class="flex items-center gap-4">
|
|
32
|
+
<span class="text-sm text-muted-color"> Value: <strong class="text-color">{{ value || '' }}</strong> </span>
|
|
33
|
+
<Button severity="secondary" size="small" @click="value = ''">Reset</Button>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<script setup>
|
|
39
|
+
import { ref } from 'vue';
|
|
40
|
+
|
|
41
|
+
const value = ref('');
|
|
42
|
+
<\/script>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Mask
|
|
46
|
+
|
|
47
|
+
Enable the mask option to hide the values in the input fields.
|
|
48
|
+
|
|
49
|
+
```vue
|
|
50
|
+
<template>
|
|
51
|
+
<div class="flex justify-center">
|
|
52
|
+
<InputOtp v-model="value" mask />
|
|
53
|
+
</div>
|
|
54
|
+
</template>
|
|
55
|
+
|
|
56
|
+
<script setup>
|
|
57
|
+
import { ref } from 'vue';
|
|
58
|
+
|
|
59
|
+
const value = ref(null);
|
|
60
|
+
<\/script>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Integer Only
|
|
64
|
+
|
|
65
|
+
When integerOnly is present, only integers can be accepted as input.
|
|
66
|
+
|
|
67
|
+
```vue
|
|
68
|
+
<template>
|
|
69
|
+
<div class="flex justify-center">
|
|
70
|
+
<InputOtp v-model="value" integerOnly />
|
|
71
|
+
</div>
|
|
72
|
+
</template>
|
|
73
|
+
|
|
74
|
+
<script setup>
|
|
75
|
+
import { ref } from 'vue';
|
|
76
|
+
|
|
77
|
+
const value = ref(null);
|
|
78
|
+
<\/script>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Filled
|
|
82
|
+
|
|
83
|
+
Specify the variant property as filled to display the component with a higher visual emphasis than the default outlined style.
|
|
84
|
+
|
|
85
|
+
```vue
|
|
86
|
+
<template>
|
|
87
|
+
<div class="flex justify-center">
|
|
88
|
+
<InputOtp v-model="value" variant="filled" />
|
|
89
|
+
</div>
|
|
90
|
+
</template>
|
|
91
|
+
|
|
92
|
+
<script setup>
|
|
93
|
+
import { ref } from 'vue';
|
|
94
|
+
|
|
95
|
+
const value = ref(null);
|
|
96
|
+
<\/script>
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Sizes
|
|
100
|
+
|
|
101
|
+
InputOtp provides small and large sizes as alternatives to the base.
|
|
102
|
+
|
|
103
|
+
```vue
|
|
104
|
+
<template>
|
|
105
|
+
<div class="flex flex-col items-center gap-4">
|
|
106
|
+
<InputOtp v-model="value1" size="small" />
|
|
107
|
+
<InputOtp v-model="value2" />
|
|
108
|
+
<InputOtp v-model="value3" size="large" />
|
|
109
|
+
</div>
|
|
110
|
+
</template>
|
|
111
|
+
|
|
112
|
+
<script setup>
|
|
113
|
+
import { ref } from 'vue';
|
|
114
|
+
|
|
115
|
+
const value1 = ref(null);
|
|
116
|
+
const value2 = ref(null);
|
|
117
|
+
const value3 = ref(null);
|
|
118
|
+
<\/script>
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## Disabled
|
|
122
|
+
|
|
123
|
+
When disabled is present, the component becomes non-interactive.
|
|
124
|
+
|
|
125
|
+
```vue
|
|
126
|
+
<template>
|
|
127
|
+
<div class="flex justify-center">
|
|
128
|
+
<InputOtp v-model="value" disabled />
|
|
129
|
+
</div>
|
|
130
|
+
</template>
|
|
131
|
+
|
|
132
|
+
<script setup>
|
|
133
|
+
import { ref } from 'vue';
|
|
134
|
+
|
|
135
|
+
const value = ref(null);
|
|
136
|
+
<\/script>
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Template
|
|
140
|
+
|
|
141
|
+
Define a template with your own UI elements with bindings to the provided events and attributes to replace the default design.
|
|
142
|
+
|
|
143
|
+
```vue
|
|
144
|
+
<template>
|
|
145
|
+
<div class="flex justify-center">
|
|
146
|
+
<InputOtp v-model="value">
|
|
147
|
+
<template #default="{ attrs, events }">
|
|
148
|
+
<input type="text" v-bind="attrs" v-on="events" class="custom-otp-input" />
|
|
149
|
+
</template>
|
|
150
|
+
</InputOtp>
|
|
151
|
+
</div>
|
|
152
|
+
</template>
|
|
153
|
+
|
|
154
|
+
<script setup>
|
|
155
|
+
import { ref } from 'vue';
|
|
156
|
+
|
|
157
|
+
const value = ref(null);
|
|
158
|
+
<\/script>
|
|
159
|
+
|
|
160
|
+
<style scoped>
|
|
161
|
+
.custom-otp-input {
|
|
162
|
+
width: 40px;
|
|
163
|
+
font-size: 36px;
|
|
164
|
+
border: 0 none;
|
|
165
|
+
appearance: none;
|
|
166
|
+
text-align: center;
|
|
167
|
+
transition: all 0.2s;
|
|
168
|
+
background: transparent;
|
|
169
|
+
border-bottom: 2px solid var(--p-inputtext-border-color);
|
|
170
|
+
border-radius: 0px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.custom-otp-input:focus {
|
|
174
|
+
outline: 0 none;
|
|
175
|
+
border-bottom-color: var(--p-primary-color);
|
|
176
|
+
}
|
|
177
|
+
<\/style>
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
## Sample
|
|
181
|
+
|
|
182
|
+
A sample UI implementation with templating and additional elements.
|
|
183
|
+
|
|
184
|
+
```vue
|
|
185
|
+
<template>
|
|
186
|
+
<div class="flex justify-center">
|
|
187
|
+
<div class="flex flex-col items-center">
|
|
188
|
+
<div class="font-bold text-xl mb-2">Authenticate Your Account</div>
|
|
189
|
+
<p class="text-sm text-muted-color block mb-8">Please enter the code sent to your phone.</p>
|
|
190
|
+
<InputOtp v-model="value" :length="6" style="gap: 0">
|
|
191
|
+
<template #default="{ attrs, events, index }">
|
|
192
|
+
<input type="text" v-bind="attrs" v-on="events" class="custom-otp-input" />
|
|
193
|
+
<div v-if="index === 3" class="px-4">
|
|
194
|
+
<Minus />
|
|
195
|
+
</div>
|
|
196
|
+
</template>
|
|
197
|
+
</InputOtp>
|
|
198
|
+
<div class="flex justify-between mt-8 self-stretch">
|
|
199
|
+
<Button link class="p-0">Resend Code</Button>
|
|
200
|
+
<Button>Submit Code</Button>
|
|
201
|
+
</div>
|
|
202
|
+
</div>
|
|
203
|
+
</div>
|
|
204
|
+
</template>
|
|
205
|
+
|
|
206
|
+
<script setup>
|
|
207
|
+
import Minus from '@primeicons/vue/minus';
|
|
208
|
+
import { ref } from 'vue';
|
|
209
|
+
|
|
210
|
+
const value = ref(null);
|
|
211
|
+
<\/script>
|
|
212
|
+
|
|
213
|
+
<style scoped>
|
|
214
|
+
.custom-otp-input {
|
|
215
|
+
width: 48px;
|
|
216
|
+
height: 48px;
|
|
217
|
+
font-size: 24px;
|
|
218
|
+
appearance: none;
|
|
219
|
+
text-align: center;
|
|
220
|
+
transition: all 0.2s;
|
|
221
|
+
border-radius: 0;
|
|
222
|
+
border: 1px solid var(--p-inputtext-border-color);
|
|
223
|
+
background: transparent;
|
|
224
|
+
outline-offset: -2px;
|
|
225
|
+
outline-color: transparent;
|
|
226
|
+
border-right: 0 none;
|
|
227
|
+
transition: outline-color 0.3s;
|
|
228
|
+
color: var(--p-inputtext-color);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.custom-otp-input:focus {
|
|
232
|
+
outline: 2px solid var(--p-focus-ring-color);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.custom-otp-input:first-child,
|
|
236
|
+
.custom-otp-input:nth-child(5) {
|
|
237
|
+
border-top-left-radius: 12px;
|
|
238
|
+
border-bottom-left-radius: 12px;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.custom-otp-input:nth-child(3),
|
|
242
|
+
.custom-otp-input:last-child {
|
|
243
|
+
border-top-right-radius: 12px;
|
|
244
|
+
border-bottom-right-radius: 12px;
|
|
245
|
+
border-right-width: 1px;
|
|
246
|
+
border-right-style: solid;
|
|
247
|
+
border-color: var(--p-inputtext-border-color);
|
|
248
|
+
}
|
|
249
|
+
<\/style>
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
## Forms
|
|
253
|
+
|
|
254
|
+
InputOtp integrates seamlessly with the PrimeVue Forms library.
|
|
255
|
+
|
|
256
|
+
```vue
|
|
257
|
+
<template>
|
|
258
|
+
<div class="flex justify-center">
|
|
259
|
+
<Form v-slot="$form" :resolver="resolver" :initialValues="initialValues" @submit="onFormSubmit" class="flex flex-col gap-4">
|
|
260
|
+
<div class="flex flex-col gap-1">
|
|
261
|
+
<InputOtp name="passcode" />
|
|
262
|
+
<Message v-if="$form.passcode?.invalid" severity="error" size="small" variant="simple">{{ $form.passcode.error?.message }}</Message>
|
|
263
|
+
</div>
|
|
264
|
+
<Button type="submit" severity="secondary">Submit</Button>
|
|
265
|
+
</Form>
|
|
266
|
+
</div>
|
|
267
|
+
</template>
|
|
268
|
+
|
|
269
|
+
<script setup>
|
|
270
|
+
import { ref } from 'vue';
|
|
271
|
+
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
|
272
|
+
import { useToast } from "primevue/usetoast";
|
|
273
|
+
import { z } from 'zod';
|
|
274
|
+
|
|
275
|
+
const toast = useToast();
|
|
276
|
+
const initialValues = ref({
|
|
277
|
+
passcode: ''
|
|
278
|
+
});
|
|
279
|
+
const resolver = ref(zodResolver(
|
|
280
|
+
z.object({
|
|
281
|
+
passcode: z.string().min(4, { message: 'Passcode is required.' })
|
|
282
|
+
})
|
|
283
|
+
));
|
|
284
|
+
|
|
285
|
+
const onFormSubmit = ({ valid }) => {
|
|
286
|
+
if (valid) {
|
|
287
|
+
toast.add({ severity: 'success', summary: 'Form is submitted.', life: 3000 });
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
<\/script>
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
## Accessibility
|
|
294
|
+
|
|
295
|
+
Screen Reader Input OTP uses a set of InputText components, refer to the InputText component for more information about the screen reader support. Keyboard Support Key Function tab Moves focus to the input otp. right arrow Moves focus to the next input element. left arrow Moves focus to the previous input element. backspace Deletes the input and moves focus to the previous input element.
|
|
296
|
+
|
|
297
|
+
## Input Otp API
|
|
298
|
+
|
|
299
|
+
### Props
|
|
300
|
+
|
|
301
|
+
| Name |Type |Default |Description |
|
|
302
|
+
| --- | --- | --- | --- |
|
|
303
|
+
| modelValue | string \| boolean | null | Specifies whether a inputotp should be checked or not. |
|
|
304
|
+
| defaultValue | string \| boolean | - | The default value for the input when not controlled by `modelValue` . |
|
|
305
|
+
| name | string | - | The name attribute for the element, typically used in form submissions. |
|
|
306
|
+
| size | HintedString<"small" \| "large"> | - | Defines the size of the component. |
|
|
307
|
+
| invalid | boolean | false | When present, it specifies that the component should have invalid state style. |
|
|
308
|
+
| disabled | boolean | false | When present, it specifies that the component should be disabled. |
|
|
309
|
+
| readonly | boolean | false | When present, it specifies that an input field is read-only. |
|
|
310
|
+
| variant | null \| HintedString<"outlined" \| "filled"> | null | Specifies the input variant of the component. |
|
|
311
|
+
| tabindex | number | - | Index of the element in tabbing order. |
|
|
312
|
+
| length | number | 4 | Number of characters to initiate. |
|
|
313
|
+
| mask | boolean | false | Mask pattern. |
|
|
314
|
+
| integerOnly | boolean | false | When present, it specifies that an input field is integer-only. |
|
|
315
|
+
| formControl | Record<string, any> | - | Form control object, typically used for handling validation and form state. |
|
|
316
|
+
| dt | any | - | It generates scoped CSS variables using design tokens for the component. |
|
|
317
|
+
| pt | PassThrough<InputOtpPassThroughOptions> | - | Used to pass attributes to DOM elements inside the component. |
|
|
318
|
+
| ptOptions | any | - | Used to configure passthrough(pt) options of the component. |
|
|
319
|
+
| unstyled | boolean | false | When enabled, it removes component related styles in the core. |
|
|
320
|
+
|
|
321
|
+
### Pass Through Options
|
|
322
|
+
|
|
323
|
+
| Name |Type |Description |
|
|
324
|
+
| --- | --- | --- |
|
|
325
|
+
| root | InputOtpPassThroughOptionType | Used to pass attributes to the root's DOM element. |
|
|
326
|
+
| pcInputText | any | Used to pass attributes to the InputText component. |
|
|
327
|
+
| hooks | any | Used to manage all lifecycle hooks. |
|
|
328
|
+
|
|
329
|
+
### Theming
|
|
330
|
+
|
|
331
|
+
### CSS Classes
|
|
332
|
+
|
|
333
|
+
| Class |Description |
|
|
334
|
+
| --- | --- |
|
|
335
|
+
| p-inputotp | Class name of the root element |
|
|
336
|
+
| p-inputotp-input | Class name of the input element |
|
|
337
|
+
|
|
338
|
+
### Design Tokens
|
|
339
|
+
|
|
340
|
+
| Token |CSS Variable |Description |
|
|
341
|
+
| --- | --- | --- |
|
|
342
|
+
| inputotp.gap | --p-inputotp-gap | Gap of root |
|
|
343
|
+
| inputotp.input.width | --p-inputotp-input-width | Width of input |
|
|
344
|
+
| inputotp.input.sm.width | --p-inputotp-input-sm-width | Width of input in small screens |
|
|
345
|
+
| inputotp.input.lg.width | --p-inputotp-input-lg-width | Width of input in large screens |
|