@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,519 @@
|
|
|
1
|
+
# Textarea
|
|
2
|
+
|
|
3
|
+
Textarea adds styling and autoResize functionality to standard textarea element.
|
|
4
|
+
|
|
5
|
+
## Basic
|
|
6
|
+
|
|
7
|
+
Textarea is used with the v-model property for two-way value binding.
|
|
8
|
+
|
|
9
|
+
```vue
|
|
10
|
+
<template>
|
|
11
|
+
<div class="flex justify-center">
|
|
12
|
+
<Textarea v-model="value" rows="5" cols="30" />
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script setup>
|
|
17
|
+
import { ref } from 'vue';
|
|
18
|
+
|
|
19
|
+
const value = ref('');
|
|
20
|
+
<\/script>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## AutoResize
|
|
24
|
+
|
|
25
|
+
When autoResize is enabled, textarea grows instead of displaying a scrollbar.
|
|
26
|
+
|
|
27
|
+
```vue
|
|
28
|
+
<template>
|
|
29
|
+
<div class="flex justify-center">
|
|
30
|
+
<Textarea v-model="value" autoResize rows="5" cols="30" />
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<script setup>
|
|
35
|
+
import { ref } from 'vue';
|
|
36
|
+
|
|
37
|
+
const value = ref('');
|
|
38
|
+
<\/script>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Float Label
|
|
42
|
+
|
|
43
|
+
A floating label appears on top of the input field when focused. Visit FloatLabel documentation for more information.
|
|
44
|
+
|
|
45
|
+
```vue
|
|
46
|
+
<template>
|
|
47
|
+
<div class="flex flex-wrap justify-center items-stretch gap-4">
|
|
48
|
+
<FloatLabel>
|
|
49
|
+
<Textarea id="over_label" v-model="value1" rows="5" cols="30" style="resize: none" class="h-full" />
|
|
50
|
+
<label for="over_label">Over Label</label>
|
|
51
|
+
</FloatLabel>
|
|
52
|
+
|
|
53
|
+
<FloatLabel variant="in">
|
|
54
|
+
<Textarea id="in_label" v-model="value2" rows="5" cols="30" style="resize: none" class="h-full" />
|
|
55
|
+
<label for="in_label">In Label</label>
|
|
56
|
+
</FloatLabel>
|
|
57
|
+
|
|
58
|
+
<FloatLabel variant="on">
|
|
59
|
+
<Textarea id="on_label" v-model="value3" rows="5" cols="30" style="resize: none" class="h-full" />
|
|
60
|
+
<label for="on_label">On Label</label>
|
|
61
|
+
</FloatLabel>
|
|
62
|
+
</div>
|
|
63
|
+
</template>
|
|
64
|
+
|
|
65
|
+
<script setup>
|
|
66
|
+
import { ref } from 'vue';
|
|
67
|
+
|
|
68
|
+
const value1 = ref('');
|
|
69
|
+
const value2 = ref('');
|
|
70
|
+
const value3 = ref('');
|
|
71
|
+
<\/script>
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Ifta Label
|
|
75
|
+
|
|
76
|
+
IftaLabel is used to create infield top aligned labels. Visit IftaLabel documentation for more information.
|
|
77
|
+
|
|
78
|
+
```vue
|
|
79
|
+
<template>
|
|
80
|
+
<div class="flex justify-center">
|
|
81
|
+
<IftaLabel>
|
|
82
|
+
<Textarea id="description" v-model="value" rows="5" cols="30" style="resize: none" />
|
|
83
|
+
<label for="description">Description</label>
|
|
84
|
+
</IftaLabel>
|
|
85
|
+
</div>
|
|
86
|
+
</template>
|
|
87
|
+
|
|
88
|
+
<script setup>
|
|
89
|
+
import { ref } from 'vue';
|
|
90
|
+
|
|
91
|
+
const value = ref(null);
|
|
92
|
+
<\/script>
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Sizes
|
|
96
|
+
|
|
97
|
+
Textarea provides small and large sizes as alternatives to the base.
|
|
98
|
+
|
|
99
|
+
```vue
|
|
100
|
+
<template>
|
|
101
|
+
<div class="flex flex-col items-center gap-4">
|
|
102
|
+
<Textarea v-model="value1" size="small" placeholder="Small" rows="3" />
|
|
103
|
+
<Textarea v-model="value2" placeholder="Normal" rows="3" />
|
|
104
|
+
<Textarea v-model="value3" size="large" placeholder="Large" rows="3" />
|
|
105
|
+
</div>
|
|
106
|
+
</template>
|
|
107
|
+
|
|
108
|
+
<script setup>
|
|
109
|
+
import { ref } from 'vue';
|
|
110
|
+
|
|
111
|
+
const value1 = ref(null);
|
|
112
|
+
const value2 = ref(null);
|
|
113
|
+
const value3 = ref(null);
|
|
114
|
+
<\/script>
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## Fluid
|
|
118
|
+
|
|
119
|
+
The fluid prop makes the component take up the full width of its container when set to true.
|
|
120
|
+
|
|
121
|
+
```vue
|
|
122
|
+
<template>
|
|
123
|
+
<Textarea v-model="value" rows="5" cols="30" fluid />
|
|
124
|
+
</template>
|
|
125
|
+
|
|
126
|
+
<script setup>
|
|
127
|
+
import { ref } from 'vue';
|
|
128
|
+
|
|
129
|
+
const value = ref('');
|
|
130
|
+
<\/script>
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## Filled
|
|
134
|
+
|
|
135
|
+
Specify the variant property as filled to display the component with a higher visual emphasis than the default outlined style.
|
|
136
|
+
|
|
137
|
+
```vue
|
|
138
|
+
<template>
|
|
139
|
+
<div class="flex justify-center">
|
|
140
|
+
<Textarea v-model="value" variant="filled" rows="5" cols="30" />
|
|
141
|
+
</div>
|
|
142
|
+
</template>
|
|
143
|
+
|
|
144
|
+
<script setup>
|
|
145
|
+
import { ref } from 'vue';
|
|
146
|
+
|
|
147
|
+
const value = ref('');
|
|
148
|
+
<\/script>
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## Disabled
|
|
152
|
+
|
|
153
|
+
When disabled is present, the element cannot be edited and focused.
|
|
154
|
+
|
|
155
|
+
```vue
|
|
156
|
+
<template>
|
|
157
|
+
<div class="flex justify-center">
|
|
158
|
+
<Textarea v-model="value" rows="5" cols="30" disabled />
|
|
159
|
+
</div>
|
|
160
|
+
</template>
|
|
161
|
+
|
|
162
|
+
<script setup>
|
|
163
|
+
import { ref } from 'vue';
|
|
164
|
+
|
|
165
|
+
const value = ref(null);
|
|
166
|
+
<\/script>
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
## Invalid
|
|
170
|
+
|
|
171
|
+
Invalid state is displayed using the invalid prop to indicate a failed validation. You can use this style when integrating with form validation libraries.
|
|
172
|
+
|
|
173
|
+
```vue
|
|
174
|
+
<template>
|
|
175
|
+
<div class="flex justify-center">
|
|
176
|
+
<Textarea v-model="value" rows="5" cols="30" :invalid="!value" placeholder="Address" />
|
|
177
|
+
</div>
|
|
178
|
+
</template>
|
|
179
|
+
|
|
180
|
+
<script setup>
|
|
181
|
+
import { ref } from 'vue';
|
|
182
|
+
|
|
183
|
+
const value = ref('');
|
|
184
|
+
<\/script>
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
## Forms
|
|
188
|
+
|
|
189
|
+
Textarea integrates seamlessly with the PrimeVue Forms library.
|
|
190
|
+
|
|
191
|
+
```vue
|
|
192
|
+
<template>
|
|
193
|
+
<div class="flex justify-center">
|
|
194
|
+
<Form v-slot="$form" :resolver="resolver" :initialValues="initialValues" @submit="onFormSubmit" class="flex flex-col gap-4">
|
|
195
|
+
<div class="flex flex-col gap-1">
|
|
196
|
+
<Textarea name="address" rows="5" cols="30" />
|
|
197
|
+
<Message v-if="$form.address?.invalid" severity="error" size="small" variant="simple">{{ $form.address.error?.message }}</Message>
|
|
198
|
+
</div>
|
|
199
|
+
<Button type="submit" severity="secondary">Submit</Button>
|
|
200
|
+
</Form>
|
|
201
|
+
</div>
|
|
202
|
+
</template>
|
|
203
|
+
|
|
204
|
+
<script setup>
|
|
205
|
+
import { ref } from 'vue';
|
|
206
|
+
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
|
207
|
+
import { useToast } from "primevue/usetoast";
|
|
208
|
+
import { z } from 'zod';
|
|
209
|
+
|
|
210
|
+
const toast = useToast();
|
|
211
|
+
const initialValues = ref({
|
|
212
|
+
address: ''
|
|
213
|
+
});
|
|
214
|
+
const resolver = ref(zodResolver(
|
|
215
|
+
z.object({
|
|
216
|
+
address: z.string().min(1, { message: 'Address is required.' })
|
|
217
|
+
})
|
|
218
|
+
));
|
|
219
|
+
|
|
220
|
+
const onFormSubmit = ({ valid }) => {
|
|
221
|
+
if (valid) {
|
|
222
|
+
toast.add({ severity: 'success', summary: 'Form is submitted.', life: 3000 });
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
<\/script>
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
## Accessibility
|
|
229
|
+
|
|
230
|
+
Screen Reader Textarea component renders a native textarea element that implicitly includes any passed prop. Value to describe the component can either be provided via label tag combined with id prop or using aria-labelledby , aria-label props. Keyboard Support Key Function tab Moves focus to the input.
|
|
231
|
+
|
|
232
|
+
```vue
|
|
233
|
+
<template>
|
|
234
|
+
<label for="address1">Address 1</label>
|
|
235
|
+
<Textarea id="address1" />
|
|
236
|
+
|
|
237
|
+
<span id="address2">Address 2</span>
|
|
238
|
+
<Textarea aria-labelledby="address2" />
|
|
239
|
+
|
|
240
|
+
<Textarea aria-label="Address Details"/>
|
|
241
|
+
</template>
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
## Textarea API
|
|
245
|
+
|
|
246
|
+
### Props
|
|
247
|
+
|
|
248
|
+
| Name |Type |Default |Description |
|
|
249
|
+
| --- | --- | --- | --- |
|
|
250
|
+
| aria-activedescendant | string | - | Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. |
|
|
251
|
+
| aria-atomic | Booleanish | - | Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. |
|
|
252
|
+
| aria-autocomplete | "none" \| "inline" \| "list" \| "both" | - | Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made. |
|
|
253
|
+
| aria-busy | Booleanish | - | Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user. |
|
|
254
|
+
| aria-checked | Booleanish \| "mixed" | - | Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. |
|
|
255
|
+
| aria-colcount | Numberish | - | Defines the total number of columns in a table, grid, or treegrid. |
|
|
256
|
+
| aria-colindex | Numberish | - | Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid. |
|
|
257
|
+
| aria-colspan | Numberish | - | Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid. |
|
|
258
|
+
| aria-controls | string | - | Identifies the element (or elements) whose contents or presence are controlled by the current element. |
|
|
259
|
+
| aria-current | Booleanish \| "page" \| "step" \| "location" \| "date" \| "time" | - | Indicates the element that represents the current item within a container or set of related elements. |
|
|
260
|
+
| aria-describedby | string | - | Identifies the element (or elements) that describes the object. |
|
|
261
|
+
| aria-details | string | - | Identifies the element that provides a detailed, extended description for the object. |
|
|
262
|
+
| aria-disabled | Booleanish | - | Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. |
|
|
263
|
+
| aria-dropeffect | "link" \| "none" \| "copy" \| "execute" \| "move" \| "popup" | - | Indicates what functions can be performed when a dragged object is released on the drop target. |
|
|
264
|
+
| aria-errormessage | string | - | Identifies the element that provides an error message for the object. |
|
|
265
|
+
| aria-expanded | Booleanish | - | Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. |
|
|
266
|
+
| aria-flowto | string | - | Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order. |
|
|
267
|
+
| aria-grabbed | Booleanish | - | Indicates an element's "grabbed" state in a drag-and-drop operation. |
|
|
268
|
+
| aria-haspopup | Booleanish \| "menu" \| "listbox" \| "tree" \| "grid" \| "dialog" | - | Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. |
|
|
269
|
+
| aria-hidden | Booleanish | - | Indicates whether the element is exposed to an accessibility API. |
|
|
270
|
+
| aria-invalid | Booleanish \| "grammar" \| "spelling" | - | Indicates the entered value does not conform to the format expected by the application. |
|
|
271
|
+
| aria-keyshortcuts | string | - | Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. |
|
|
272
|
+
| aria-label | string | - | Defines a string value that labels the current element. |
|
|
273
|
+
| aria-labelledby | string | - | Identifies the element (or elements) that labels the current element. |
|
|
274
|
+
| aria-level | Numberish | - | Defines the hierarchical level of an element within a structure. |
|
|
275
|
+
| aria-live | "off" \| "assertive" \| "polite" | - | Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region. |
|
|
276
|
+
| aria-modal | Booleanish | - | Indicates whether an element is modal when displayed. |
|
|
277
|
+
| aria-multiline | Booleanish | - | Indicates whether a text box accepts multiple lines of input or only a single line. |
|
|
278
|
+
| aria-multiselectable | Booleanish | - | Indicates that the user may select more than one item from the current selectable descendants. |
|
|
279
|
+
| aria-orientation | "horizontal" \| "vertical" | - | Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. |
|
|
280
|
+
| aria-owns | string | - | Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship. |
|
|
281
|
+
| aria-placeholder | string | - | Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format. |
|
|
282
|
+
| aria-posinset | Numberish | - | Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. |
|
|
283
|
+
| aria-pressed | Booleanish \| "mixed" | - | Indicates the current "pressed" state of toggle buttons. |
|
|
284
|
+
| aria-readonly | Booleanish | - | Indicates that the element is not editable, but is otherwise operable. |
|
|
285
|
+
| aria-relevant | "text" \| "additions" \| "additions removals" \| "additions text" \| "all" \| "removals" \| "removals additions" \| "removals text" \| "text additions" \| "text removals" | - | Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. |
|
|
286
|
+
| aria-required | Booleanish | - | Indicates that user input is required on the element before a form may be submitted. |
|
|
287
|
+
| aria-roledescription | string | - | Defines a human-readable, author-localized description for the role of an element. |
|
|
288
|
+
| aria-rowcount | Numberish | - | Defines the total number of rows in a table, grid, or treegrid. |
|
|
289
|
+
| aria-rowindex | Numberish | - | Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid. |
|
|
290
|
+
| aria-rowspan | Numberish | - | Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid. |
|
|
291
|
+
| aria-selected | Booleanish | - | Indicates the current "selected" state of various widgets. |
|
|
292
|
+
| aria-setsize | Numberish | - | Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. |
|
|
293
|
+
| aria-sort | "none" \| "ascending" \| "descending" \| "other" | - | Indicates if items in a table or grid are sorted in ascending or descending order. |
|
|
294
|
+
| aria-valuemax | Numberish | - | Defines the maximum allowed value for a range widget. |
|
|
295
|
+
| aria-valuemin | Numberish | - | Defines the minimum allowed value for a range widget. |
|
|
296
|
+
| aria-valuenow | Numberish | - | Defines the current value for a range widget. |
|
|
297
|
+
| aria-valuetext | string | - | Defines the human readable text alternative of aria-valuenow for a range widget. |
|
|
298
|
+
| innerHTML | string | - | |
|
|
299
|
+
| class | ClassValue | - | |
|
|
300
|
+
| style | StyleValue | - | |
|
|
301
|
+
| accesskey | string | - | |
|
|
302
|
+
| contenteditable | Booleanish \| "inherit" \| "plaintext-only" | - | |
|
|
303
|
+
| contextmenu | string | - | |
|
|
304
|
+
| dir | string | - | |
|
|
305
|
+
| draggable | Booleanish | - | |
|
|
306
|
+
| enterkeyhint | "enter" \| "done" \| "go" \| "next" \| "previous" \| "search" \| "send" | - | |
|
|
307
|
+
| enterKeyHint | "enter" \| "done" \| "go" \| "next" \| "previous" \| "search" \| "send" | - | |
|
|
308
|
+
| hidden | "" \| Booleanish \| "hidden" \| "until-found" | - | |
|
|
309
|
+
| id | string | - | |
|
|
310
|
+
| inert | Booleanish | - | |
|
|
311
|
+
| lang | string | - | |
|
|
312
|
+
| spellcheck | Booleanish | - | |
|
|
313
|
+
| tabindex | Numberish | - | |
|
|
314
|
+
| title | string | - | |
|
|
315
|
+
| translate | "yes" \| "no" | - | |
|
|
316
|
+
| radiogroup | string | - | |
|
|
317
|
+
| role | string | - | |
|
|
318
|
+
| about | string | - | |
|
|
319
|
+
| datatype | string | - | |
|
|
320
|
+
| inlist | any | - | |
|
|
321
|
+
| prefix | string | - | |
|
|
322
|
+
| property | string | - | |
|
|
323
|
+
| resource | string | - | |
|
|
324
|
+
| typeof | string | - | |
|
|
325
|
+
| vocab | string | - | |
|
|
326
|
+
| autocapitalize | string | - | |
|
|
327
|
+
| autocorrect | string | - | |
|
|
328
|
+
| autosave | string | - | |
|
|
329
|
+
| color | string | - | |
|
|
330
|
+
| itemprop | string | - | |
|
|
331
|
+
| itemscope | Booleanish | - | |
|
|
332
|
+
| itemtype | string | - | |
|
|
333
|
+
| itemid | string | - | |
|
|
334
|
+
| itemref | string | - | |
|
|
335
|
+
| results | Numberish | - | |
|
|
336
|
+
| security | string | - | |
|
|
337
|
+
| unselectable | "on" \| "off" | - | |
|
|
338
|
+
| inputmode | "text" \| "search" \| "none" \| "tel" \| "url" \| "email" \| "numeric" \| "decimal" | - | Hints at the type of data that might be entered by the user while editing the element or its contents |
|
|
339
|
+
| is | string | - | Specify that a standard HTML element should behave like a defined custom built-in element |
|
|
340
|
+
| exportparts | string | - | |
|
|
341
|
+
| part | string | - | |
|
|
342
|
+
| autocomplete | string | - | |
|
|
343
|
+
| autofocus | Booleanish | - | |
|
|
344
|
+
| cols | Numberish | - | |
|
|
345
|
+
| dirname | string | - | |
|
|
346
|
+
| disabled | Booleanish | - | |
|
|
347
|
+
| form | string | - | |
|
|
348
|
+
| maxlength | Numberish | - | |
|
|
349
|
+
| minlength | Numberish | - | |
|
|
350
|
+
| placeholder | string | - | |
|
|
351
|
+
| readonly | Booleanish | - | |
|
|
352
|
+
| required | Booleanish | - | |
|
|
353
|
+
| rows | Numberish | - | |
|
|
354
|
+
| value | null \| string \| number \| readonly string[] | - | |
|
|
355
|
+
| wrap | string | - | |
|
|
356
|
+
| onCopy | Function | - | |
|
|
357
|
+
| onCut | Function | - | |
|
|
358
|
+
| onPaste | Function | - | |
|
|
359
|
+
| onCompositionend | Function | - | |
|
|
360
|
+
| onCompositionstart | Function | - | |
|
|
361
|
+
| onCompositionupdate | Function | - | |
|
|
362
|
+
| onDrag | Function | - | |
|
|
363
|
+
| onDragend | Function | - | |
|
|
364
|
+
| onDragenter | Function | - | |
|
|
365
|
+
| onDragexit | Function | - | |
|
|
366
|
+
| onDragleave | Function | - | |
|
|
367
|
+
| onDragover | Function | - | |
|
|
368
|
+
| onDragstart | Function | - | |
|
|
369
|
+
| onDrop | Function | - | |
|
|
370
|
+
| onFocus | Function | - | |
|
|
371
|
+
| onFocusin | Function | - | |
|
|
372
|
+
| onFocusout | Function | - | |
|
|
373
|
+
| onBlur | Function | - | |
|
|
374
|
+
| onChange | Function | - | |
|
|
375
|
+
| onBeforeinput | Function | - | |
|
|
376
|
+
| onFormdata | Function | - | |
|
|
377
|
+
| onInput | Function | - | |
|
|
378
|
+
| onReset | Function | - | |
|
|
379
|
+
| onSubmit | Function | - | |
|
|
380
|
+
| onInvalid | Function | - | |
|
|
381
|
+
| onFullscreenchange | Function | - | |
|
|
382
|
+
| onFullscreenerror | Function | - | |
|
|
383
|
+
| onLoad | Function | - | |
|
|
384
|
+
| onError | Function | - | |
|
|
385
|
+
| onKeydown | Function | - | |
|
|
386
|
+
| onKeypress | Function | - | |
|
|
387
|
+
| onKeyup | Function | - | |
|
|
388
|
+
| onDblclick | Function | - | |
|
|
389
|
+
| onMousedown | Function | - | |
|
|
390
|
+
| onMouseenter | Function | - | |
|
|
391
|
+
| onMouseleave | Function | - | |
|
|
392
|
+
| onMousemove | Function | - | |
|
|
393
|
+
| onMouseout | Function | - | |
|
|
394
|
+
| onMouseover | Function | - | |
|
|
395
|
+
| onMouseup | Function | - | |
|
|
396
|
+
| onAbort | Function | - | |
|
|
397
|
+
| onCanplay | Function | - | |
|
|
398
|
+
| onCanplaythrough | Function | - | |
|
|
399
|
+
| onDurationchange | Function | - | |
|
|
400
|
+
| onEmptied | Function | - | |
|
|
401
|
+
| onEncrypted | Function | - | |
|
|
402
|
+
| onEnded | Function | - | |
|
|
403
|
+
| onLoadeddata | Function | - | |
|
|
404
|
+
| onLoadedmetadata | Function | - | |
|
|
405
|
+
| onLoadstart | Function | - | |
|
|
406
|
+
| onPause | Function | - | |
|
|
407
|
+
| onPlay | Function | - | |
|
|
408
|
+
| onPlaying | Function | - | |
|
|
409
|
+
| onProgress | Function | - | |
|
|
410
|
+
| onRatechange | Function | - | |
|
|
411
|
+
| onSeeked | Function | - | |
|
|
412
|
+
| onSeeking | Function | - | |
|
|
413
|
+
| onStalled | Function | - | |
|
|
414
|
+
| onSuspend | Function | - | |
|
|
415
|
+
| onTimeupdate | Function | - | |
|
|
416
|
+
| onVolumechange | Function | - | |
|
|
417
|
+
| onWaiting | Function | - | |
|
|
418
|
+
| onSelect | Function | - | |
|
|
419
|
+
| onScroll | Function | - | |
|
|
420
|
+
| onScrollend | Function | - | |
|
|
421
|
+
| onTouchcancel | Function | - | |
|
|
422
|
+
| onTouchend | Function | - | |
|
|
423
|
+
| onTouchmove | Function | - | |
|
|
424
|
+
| onTouchstart | Function | - | |
|
|
425
|
+
| onAuxclick | Function | - | |
|
|
426
|
+
| onClick | Function | - | |
|
|
427
|
+
| onContextmenu | Function | - | |
|
|
428
|
+
| onGotpointercapture | Function | - | |
|
|
429
|
+
| onLostpointercapture | Function | - | |
|
|
430
|
+
| onPointerdown | Function | - | |
|
|
431
|
+
| onPointermove | Function | - | |
|
|
432
|
+
| onPointerup | Function | - | |
|
|
433
|
+
| onPointercancel | Function | - | |
|
|
434
|
+
| onPointerenter | Function | - | |
|
|
435
|
+
| onPointerleave | Function | - | |
|
|
436
|
+
| onPointerover | Function | - | |
|
|
437
|
+
| onPointerout | Function | - | |
|
|
438
|
+
| onBeforetoggle | Function | - | |
|
|
439
|
+
| onToggle | Function | - | |
|
|
440
|
+
| onWheel | Function | - | |
|
|
441
|
+
| onAnimationcancel | Function | - | |
|
|
442
|
+
| onAnimationstart | Function | - | |
|
|
443
|
+
| onAnimationend | Function | - | |
|
|
444
|
+
| onAnimationiteration | Function | - | |
|
|
445
|
+
| onSecuritypolicyviolation | Function | - | |
|
|
446
|
+
| onTransitioncancel | Function | - | |
|
|
447
|
+
| onTransitionend | Function | - | |
|
|
448
|
+
| onTransitionrun | Function | - | |
|
|
449
|
+
| onTransitionstart | Function | - | |
|
|
450
|
+
| modelValue | Nullable<string> | - | Value of the component. |
|
|
451
|
+
| defaultValue | Nullable<string> | - | The default value for the input when not controlled by `modelValue` . |
|
|
452
|
+
| name | string | - | The name attribute for the element, typically used in form submissions. |
|
|
453
|
+
| autoResize | boolean | false | When present, height of textarea changes as being typed. |
|
|
454
|
+
| size | HintedString<"small" \| "large"> | - | Defines the size of the component. |
|
|
455
|
+
| invalid | boolean | false | When present, it specifies that the component should have invalid state style. |
|
|
456
|
+
| variant | null \| HintedString<"outlined" \| "filled"> | null | Specifies the input variant of the component. |
|
|
457
|
+
| fluid | boolean | null | Spans 100% width of the container when enabled. |
|
|
458
|
+
| formControl | Record<string, any> | - | Form control object, typically used for handling validation and form state. |
|
|
459
|
+
| dt | any | - | It generates scoped CSS variables using design tokens for the component. |
|
|
460
|
+
| pt | PassThrough<TextareaPassThroughOptions> | - | Used to pass attributes to DOM elements inside the component. |
|
|
461
|
+
| ptOptions | any | - | Used to configure passthrough(pt) options of the component. |
|
|
462
|
+
| unstyled | boolean | false | When enabled, it removes component related styles in the core. |
|
|
463
|
+
|
|
464
|
+
### Emits
|
|
465
|
+
|
|
466
|
+
| Name |Parameters |Description |
|
|
467
|
+
| --- | --- | --- |
|
|
468
|
+
| update:modelValue | Function | |
|
|
469
|
+
|
|
470
|
+
### Pass Through Options
|
|
471
|
+
|
|
472
|
+
| Name |Type |Description |
|
|
473
|
+
| --- | --- | --- |
|
|
474
|
+
| root | TextareaPassThroughOptionType | 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-textarea | Class name of the root element |
|
|
484
|
+
|
|
485
|
+
### Design Tokens
|
|
486
|
+
|
|
487
|
+
| Token |CSS Variable |Description |
|
|
488
|
+
| --- | --- | --- |
|
|
489
|
+
| textarea.background | --p-textarea-background | Background of root |
|
|
490
|
+
| textarea.disabled.background | --p-textarea-disabled-background | Disabled background of root |
|
|
491
|
+
| textarea.filled.background | --p-textarea-filled-background | Filled background of root |
|
|
492
|
+
| textarea.filled.hover.background | --p-textarea-filled-hover-background | Filled hover background of root |
|
|
493
|
+
| textarea.filled.focus.background | --p-textarea-filled-focus-background | Filled focus background of root |
|
|
494
|
+
| textarea.border.color | --p-textarea-border-color | Border color of root |
|
|
495
|
+
| textarea.hover.border.color | --p-textarea-hover-border-color | Hover border color of root |
|
|
496
|
+
| textarea.focus.border.color | --p-textarea-focus-border-color | Focus border color of root |
|
|
497
|
+
| textarea.invalid.border.color | --p-textarea-invalid-border-color | Invalid border color of root |
|
|
498
|
+
| textarea.color | --p-textarea-color | Color of root |
|
|
499
|
+
| textarea.disabled.color | --p-textarea-disabled-color | Disabled color of root |
|
|
500
|
+
| textarea.placeholder.color | --p-textarea-placeholder-color | Placeholder color of root |
|
|
501
|
+
| textarea.invalid.placeholder.color | --p-textarea-invalid-placeholder-color | Invalid placeholder color of root |
|
|
502
|
+
| textarea.shadow | --p-textarea-shadow | Shadow of root |
|
|
503
|
+
| textarea.padding.x | --p-textarea-padding-x | Padding x of root |
|
|
504
|
+
| textarea.padding.y | --p-textarea-padding-y | Padding y of root |
|
|
505
|
+
| textarea.border.radius | --p-textarea-border-radius | Border radius of root |
|
|
506
|
+
| textarea.focus.ring.width | --p-textarea-focus-ring-width | Focus ring width of root |
|
|
507
|
+
| textarea.focus.ring.style | --p-textarea-focus-ring-style | Focus ring style of root |
|
|
508
|
+
| textarea.focus.ring.color | --p-textarea-focus-ring-color | Focus ring color of root |
|
|
509
|
+
| textarea.focus.ring.offset | --p-textarea-focus-ring-offset | Focus ring offset of root |
|
|
510
|
+
| textarea.focus.ring.shadow | --p-textarea-focus-ring-shadow | Focus ring shadow of root |
|
|
511
|
+
| textarea.transition.duration | --p-textarea-transition-duration | Transition duration of root |
|
|
512
|
+
| textarea.sm.font.size | --p-textarea-sm-font-size | Sm font size of root |
|
|
513
|
+
| textarea.sm.padding.x | --p-textarea-sm-padding-x | Sm padding x of root |
|
|
514
|
+
| textarea.sm.padding.y | --p-textarea-sm-padding-y | Sm padding y of root |
|
|
515
|
+
| textarea.lg.font.size | --p-textarea-lg-font-size | Lg font size of root |
|
|
516
|
+
| textarea.lg.padding.x | --p-textarea-lg-padding-x | Lg padding x of root |
|
|
517
|
+
| textarea.lg.padding.y | --p-textarea-lg-padding-y | Lg padding y of root |
|
|
518
|
+
| textarea.font.weight | --p-textarea-font-weight | Font weight of root |
|
|
519
|
+
| textarea.font.size | --p-textarea-font-size | Font size of root |
|