@exhaustive-ui/mcp 0.0.0-stage → 3.0.0-alpha.1

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.
Files changed (121) hide show
  1. package/LICENSE +23 -0
  2. package/README.md +167 -2
  3. package/data/components/accordion.md +421 -0
  4. package/data/components/animateonscroll.md +163 -0
  5. package/data/components/autocomplete.md +1077 -0
  6. package/data/components/autofocus.md +38 -0
  7. package/data/components/avatar.md +417 -0
  8. package/data/components/badge.md +234 -0
  9. package/data/components/blockui.md +108 -0
  10. package/data/components/breadcrumb.md +178 -0
  11. package/data/components/button.md +774 -0
  12. package/data/components/card.md +138 -0
  13. package/data/components/carousel.md +440 -0
  14. package/data/components/cascadeselect.md +1387 -0
  15. package/data/components/chart.md +1178 -0
  16. package/data/components/checkbox.md +529 -0
  17. package/data/components/chip.md +180 -0
  18. package/data/components/colorpicker.md +301 -0
  19. package/data/components/confirmdialog.md +287 -0
  20. package/data/components/confirmpopup.md +417 -0
  21. package/data/components/contextmenu.md +491 -0
  22. package/data/components/dataview.md +600 -0
  23. package/data/components/datepicker.md +1262 -0
  24. package/data/components/dialog.md +622 -0
  25. package/data/components/divider.md +250 -0
  26. package/data/components/dock.md +500 -0
  27. package/data/components/dragdrop.md +285 -0
  28. package/data/components/drawer.md +510 -0
  29. package/data/components/dynamicdialog.md +109 -0
  30. package/data/components/editor.md +291 -0
  31. package/data/components/fieldset.md +182 -0
  32. package/data/components/fileupload.md +430 -0
  33. package/data/components/floatlabel.md +155 -0
  34. package/data/components/fluid.md +72 -0
  35. package/data/components/focustrap.md +65 -0
  36. package/data/components/galleria.md +627 -0
  37. package/data/components/iconfield.md +246 -0
  38. package/data/components/iftalabel.md +105 -0
  39. package/data/components/imagecompare.md +97 -0
  40. package/data/components/inplace.md +233 -0
  41. package/data/components/inputgroup.md +306 -0
  42. package/data/components/inputmask.md +518 -0
  43. package/data/components/inputnumber.md +675 -0
  44. package/data/components/inputotp.md +336 -0
  45. package/data/components/inputtext.md +488 -0
  46. package/data/components/keyfilter.md +85 -0
  47. package/data/components/knob.md +462 -0
  48. package/data/components/listbox.md +798 -0
  49. package/data/components/llms.md +28 -0
  50. package/data/components/megamenu.md +587 -0
  51. package/data/components/menu.md +483 -0
  52. package/data/components/menubar.md +462 -0
  53. package/data/components/message.md +449 -0
  54. package/data/components/metergroup.md +241 -0
  55. package/data/components/multiselect.md +1047 -0
  56. package/data/components/orderlist.md +342 -0
  57. package/data/components/organizationchart.md +197 -0
  58. package/data/components/overlay.md +217 -0
  59. package/data/components/paginator.md +314 -0
  60. package/data/components/panel.md +214 -0
  61. package/data/components/panelmenu.md +699 -0
  62. package/data/components/password.md +570 -0
  63. package/data/components/picklist.md +420 -0
  64. package/data/components/popover.md +378 -0
  65. package/data/components/progressbar.md +181 -0
  66. package/data/components/progressspinner.md +91 -0
  67. package/data/components/radiobutton.md +377 -0
  68. package/data/components/rating.md +312 -0
  69. package/data/components/ripple.md +89 -0
  70. package/data/components/scroller.md +122 -0
  71. package/data/components/scrollpanel.md +149 -0
  72. package/data/components/scrolltop.md +105 -0
  73. package/data/components/select.md +1206 -0
  74. package/data/components/selectbutton.md +356 -0
  75. package/data/components/skeleton.md +242 -0
  76. package/data/components/slider.md +337 -0
  77. package/data/components/speeddial.md +589 -0
  78. package/data/components/splitbutton.md +945 -0
  79. package/data/components/splitter.md +196 -0
  80. package/data/components/stepper.md +411 -0
  81. package/data/components/styleclass.md +126 -0
  82. package/data/components/table.md +4557 -0
  83. package/data/components/tabs.md +467 -0
  84. package/data/components/tag.md +200 -0
  85. package/data/components/terminal.md +118 -0
  86. package/data/components/textarea.md +416 -0
  87. package/data/components/tieredmenu.md +578 -0
  88. package/data/components/timeline.md +310 -0
  89. package/data/components/toast.md +596 -0
  90. package/data/components/togglebutton.md +356 -0
  91. package/data/components/toggleswitch.md +285 -0
  92. package/data/components/toolbar.md +182 -0
  93. package/data/components/tooltip.md +211 -0
  94. package/data/components/tree.md +746 -0
  95. package/data/components/treeselect.md +912 -0
  96. package/data/components/treetable.md +2814 -0
  97. package/data/components.json +43751 -0
  98. package/data/llms-full.txt +47433 -0
  99. package/data/llms.txt +121 -0
  100. package/data/manifest.json +46513 -0
  101. package/data/pages/accessibility.md +28 -0
  102. package/data/pages/animations.md +28 -0
  103. package/data/pages/configuration.md +210 -0
  104. package/data/pages/contribution.md +20 -0
  105. package/data/pages/customicons.md +20 -0
  106. package/data/pages/faq.md +20 -0
  107. package/data/pages/icons.md +66 -0
  108. package/data/pages/installation.md +71 -0
  109. package/data/pages/llms.md +61 -0
  110. package/data/pages/passthrough.md +32 -0
  111. package/data/pages/philosophy.md +28 -0
  112. package/data/pages/primeflex.md +20 -0
  113. package/data/pages/rtl.md +12 -0
  114. package/data/pages/styled.md +132 -0
  115. package/data/pages/tailwind.md +40 -0
  116. package/data/pages/unstyled.md +39 -0
  117. package/data/snapshot.json +9 -0
  118. package/dist/index.d.mts +448 -0
  119. package/dist/index.mjs +2501 -0
  120. package/dist/index.mjs.map +1 -0
  121. package/package.json +67 -3
@@ -0,0 +1,118 @@
1
+ # Angular Terminal Component
2
+
3
+
4
+
5
+ ## Accessibility
6
+
7
+ Screen Reader Terminal component has an input element that can be described with aria-label or aria-labelledby props. The element that lists the previous commands has aria-live so that changes are received by the screen reader. Keyboard Support Key Function tab Moves focus through the input element. enter Executes the command when focus in on the input element.
8
+
9
+ ## Basic
10
+
11
+ Commands are processed using observables via the TerminalService . Import this service into your component and subscribe to commandHandler to process commands by sending replies with sendResponse function.
12
+
13
+ ```typescript
14
+ import { Component } from '@angular/core';
15
+ import { TerminalModule } from '@exhaustive-ui/core/terminal';
16
+
17
+ @Component({
18
+ template: `
19
+ <div class="card">
20
+ <p>Enter "<strong>date</strong>" to display the current date, "<strong>greet &#123;0&#125;</strong>" for a message and "<strong>random</strong>" to get a random number.</p>
21
+ <p-terminal welcomeMessage="Welcome to ExhaustiveUI" prompt="exhaustive $" />
22
+ </div>
23
+ `,
24
+ standalone: true,
25
+ imports: [TerminalModule]
26
+ })
27
+ export class TerminalBasicDemo {
28
+ subscription: Subscription;
29
+
30
+ constructor() {
31
+ this.subscription = this.terminalService.commandHandler.subscribe((text) => {
32
+ let response;
33
+ let argsIndex = text.indexOf(' ');
34
+ let command = argsIndex !== -1 ? text.substring(0, argsIndex) : text;
35
+ switch (command) {
36
+ case 'date':
37
+ response = 'Today is ' + new Date().toDateString();
38
+ break;
39
+ case 'greet':
40
+ response = 'Hola ' + text.substring(argsIndex + 1);
41
+ break;
42
+ case 'random':
43
+ response = Math.floor(Math.random() * 100);
44
+ break;
45
+ default:
46
+ response = 'Unknown command: ' + command;
47
+ }
48
+ this.terminalService.sendResponse(response);
49
+ });
50
+ }
51
+
52
+ ngOnDestroy() {
53
+ if (this.subscription) {
54
+ this.subscription.unsubscribe();
55
+ }
56
+ }
57
+ }
58
+ ```
59
+
60
+ ## Terminal
61
+
62
+ Terminal is a text based user interface.
63
+
64
+ ### Props
65
+
66
+ | Name | Type | Default | Description |
67
+ |------|------|---------|-------------|
68
+ | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
69
+ | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
70
+ | pt | InputSignal<TerminalPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
71
+ | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
72
+ | welcomeMessage | InputSignal<string> | ... | Initial text to display on terminal. |
73
+ | prompt | InputSignal<string> | ... | Prompt text for each command. |
74
+
75
+ ## Pass Through Options
76
+
77
+ | Name | Type | Description |
78
+ |------|------|-------------|
79
+ | host | PassThroughOption<HTMLElement, I> | Used to pass attributes to the host's DOM element. |
80
+ | root | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the root's DOM element. |
81
+ | welcomeMessage | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the welcome message's DOM element. |
82
+ | commandList | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the command list's DOM element. |
83
+ | command | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the command's DOM element. |
84
+ | promptLabel | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the prompt label's DOM element. |
85
+ | commandValue | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the command value's DOM element. |
86
+ | commandResponse | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the command response's DOM element. |
87
+ | prompt | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the prompt's DOM element. |
88
+ | promptValue | PassThroughOption<HTMLInputElement, I> | Used to pass attributes to the prompt value's DOM element. |
89
+
90
+ ## Theming
91
+
92
+ ### CSS Classes
93
+
94
+ | Class | Description |
95
+ |-------|-------------|
96
+ | p-terminal | Class name of the root element |
97
+ | p-terminal-welcome-message | Class name of the welcome message element |
98
+ | p-terminal-command-list | Class name of the command list element |
99
+ | p-terminal-command | Class name of the command element |
100
+ | p-terminal-command-value | Class name of the command value element |
101
+ | p-terminal-command-response | Class name of the command response element |
102
+ | p-terminal-prompt | Class name of the prompt element |
103
+ | p-terminal-prompt-label | Class name of the prompt label element |
104
+ | p-terminal-prompt-value | Class name of the prompt value element |
105
+
106
+ ### Design Tokens
107
+
108
+ | Token | CSS Variable | Description |
109
+ |-------|--------------|-------------|
110
+ | terminal.background | --p-terminal-background | Background of root |
111
+ | terminal.border.color | --p-terminal-border-color | Border color of root |
112
+ | terminal.color | --p-terminal-color | Color of root |
113
+ | terminal.height | --p-terminal-height | Height of root |
114
+ | terminal.padding | --p-terminal-padding | Padding of root |
115
+ | terminal.border.radius | --p-terminal-border-radius | Border radius of root |
116
+ | terminal.prompt.gap | --p-terminal-prompt-gap | Gap of prompt |
117
+ | terminal.command.response.margin | --p-terminal-command-response-margin | Margin of command response |
118
+
@@ -0,0 +1,416 @@
1
+ # Angular Textarea Component
2
+
3
+ Textarea adds styling and autoResize functionality to standard textarea element.
4
+
5
+ ## Accessibility
6
+
7
+ 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.
8
+
9
+ ## AutoResize
10
+
11
+ When autoResize is enabled, textarea grows instead of displaying a scrollbar.
12
+
13
+ ```typescript
14
+ import { Component } from '@angular/core';
15
+
16
+ @Component({
17
+ template: `
18
+ <div class="card flex justify-center">
19
+ <textarea rows="5" cols="30" pTextarea [autoResize]="true"></textarea>
20
+ </div>
21
+ `,
22
+ standalone: true,
23
+ imports: []
24
+ })
25
+ export class TextareaAutoresizeDemo {}
26
+ ```
27
+
28
+ ## Basic
29
+
30
+ Textarea is applied to an input field with pTextarea directive.
31
+
32
+ ```typescript
33
+ import { Component } from '@angular/core';
34
+ import { FormsModule } from '@angular/forms';
35
+
36
+ @Component({
37
+ template: `
38
+ <div class="card flex justify-center">
39
+ <textarea rows="5" cols="30" pTextarea [(ngModel)]="value"></textarea>
40
+ </div>
41
+ `,
42
+ standalone: true,
43
+ imports: [FormsModule]
44
+ })
45
+ export class TextareaBasicDemo {
46
+ value!: string;
47
+ }
48
+ ```
49
+
50
+ ## Disabled
51
+
52
+ When disabled is present, the element cannot be edited and focused.
53
+
54
+ ```typescript
55
+ import { Component } from '@angular/core';
56
+
57
+ @Component({
58
+ template: `
59
+ <div class="card flex justify-center">
60
+ <textarea rows="5" cols="30" pTextarea [disabled]="true"></textarea>
61
+ </div>
62
+ `,
63
+ standalone: true,
64
+ imports: []
65
+ })
66
+ export class TextareaDisabledDemo {}
67
+ ```
68
+
69
+ ## Filled
70
+
71
+ Specify the variant property as filled to display the component with a higher visual emphasis than the default outlined style.
72
+
73
+ ```typescript
74
+ import { Component } from '@angular/core';
75
+ import { FormsModule } from '@angular/forms';
76
+
77
+ @Component({
78
+ template: `
79
+ <div class="card flex justify-center">
80
+ <textarea [(ngModel)]="value" [variant]="'filled'" rows="5" cols="30" pTextarea></textarea>
81
+ </div>
82
+ `,
83
+ standalone: true,
84
+ imports: [FormsModule]
85
+ })
86
+ export class TextareaFilledDemo {
87
+ value!: string;
88
+ }
89
+ ```
90
+
91
+ ## Float Label
92
+
93
+ A floating label appears on top of the input field when focused. Visit FloatLabel documentation for more information.
94
+
95
+ ```typescript
96
+ import { Component } from '@angular/core';
97
+ import { FormsModule } from '@angular/forms';
98
+ import { FloatLabelModule } from '@exhaustive-ui/core/floatlabel';
99
+
100
+ @Component({
101
+ template: `
102
+ <div class="card flex flex-wrap justify-center items-stretch gap-4">
103
+ <p-floatlabel>
104
+ <textarea pTextarea id="over_label" [(ngModel)]="value1" rows="5" cols="30" style="resize: none" class="h-full"></textarea>
105
+ <label for="over_label">Over Label</label>
106
+ </p-floatlabel>
107
+ <p-floatlabel variant="in">
108
+ <textarea pTextarea id="in_label" [(ngModel)]="value2" rows="5" cols="30" style="resize: none" class="h-full"></textarea>
109
+ <label for="in_label">In Label</label>
110
+ </p-floatlabel>
111
+ <p-floatlabel variant="on">
112
+ <textarea pTextarea id="on_label" [(ngModel)]="value3" rows="5" cols="30" style="resize: none" class="h-full"></textarea>
113
+ <label for="on_label">On Label</label>
114
+ </p-floatlabel>
115
+ </div>
116
+ `,
117
+ standalone: true,
118
+ imports: [FloatLabelModule, FormsModule]
119
+ })
120
+ export class TextareaFloatlabelDemo {
121
+ value1: string = '';
122
+ value2: string = '';
123
+ value3: string = '';
124
+ }
125
+ ```
126
+
127
+ ## Fluid
128
+
129
+ The fluid prop makes the component take up the full width of its container when set to true.
130
+
131
+ ```typescript
132
+ import { Component } from '@angular/core';
133
+ import { FormsModule } from '@angular/forms';
134
+
135
+ @Component({
136
+ template: `
137
+ <div class="card">
138
+ <textarea rows="5" cols="30" pTextarea [(ngModel)]="value" fluid></textarea>
139
+ </div>
140
+ `,
141
+ standalone: true,
142
+ imports: [FormsModule]
143
+ })
144
+ export class TextareaFluidDemo {
145
+ value!: string;
146
+ }
147
+ ```
148
+
149
+ ## Ifta Label
150
+
151
+ IftaLabel is used to create infield top aligned labels. Visit IftaLabel documentation for more information.
152
+
153
+ ```typescript
154
+ import { Component } from '@angular/core';
155
+ import { FormsModule } from '@angular/forms';
156
+ import { IftaLabelModule } from '@exhaustive-ui/core/iftalabel';
157
+
158
+ @Component({
159
+ template: `
160
+ <div class="card flex justify-center">
161
+ <p-iftalabel>
162
+ <textarea pTextarea id="description" [(ngModel)]="value" rows="5" cols="30" style="resize: none"></textarea>
163
+ <label for="description">Description</label>
164
+ </p-iftalabel>
165
+ </div>
166
+ `,
167
+ standalone: true,
168
+ imports: [IftaLabelModule, FormsModule]
169
+ })
170
+ export class TextareaIftalabelDemo {
171
+ value: string = '';
172
+ }
173
+ ```
174
+
175
+ ## Invalid
176
+
177
+ The invalid state is applied using the ⁠invalid property to indicate failed validation, which can be integrated with Angular Forms.
178
+
179
+ ```typescript
180
+ import { Component } from '@angular/core';
181
+ import { FormsModule } from '@angular/forms';
182
+
183
+ @Component({
184
+ template: `
185
+ <div class="card flex justify-center">
186
+ <textarea rows="5" cols="30" pTextarea [(ngModel)]="value" [invalid]="!value" placeholder="Address"></textarea>
187
+ </div>
188
+ `,
189
+ standalone: true,
190
+ imports: [FormsModule]
191
+ })
192
+ export class TextareaInvalidDemo {
193
+ value!: string;
194
+ }
195
+ ```
196
+
197
+ ## keyfilter-doc
198
+
199
+ InputText has built-in key filtering support to block certain keys, refer to keyfilter page for more information.
200
+
201
+ ```typescript
202
+ import { Component } from '@angular/core';
203
+
204
+ @Component({
205
+ template: `
206
+ <div class="card flex justify-center">
207
+ <textarea pKeyFilter="int" rows="5" cols="30" pTextarea></textarea>
208
+ </div>
209
+ `,
210
+ standalone: true,
211
+ imports: []
212
+ })
213
+ export class TextareaKeyfilterDemo {}
214
+ ```
215
+
216
+ ## reactiveforms-doc
217
+
218
+ Textarea can also be used with reactive forms. In this case, the formControlName property is used to bind the component to a form control.
219
+
220
+ ```typescript
221
+ import { Component, inject } from '@angular/core';
222
+ import { ReactiveFormsModule } from '@angular/forms';
223
+ import { MessageModule } from '@exhaustive-ui/core/message';
224
+ import { ToastModule } from '@exhaustive-ui/core/toast';
225
+ import { ButtonModule } from '@exhaustive-ui/core/button';
226
+ import { MessageService } from '@exhaustive-ui/core/api';
227
+
228
+ @Component({
229
+ template: `
230
+ <p-toast />
231
+ <div class="card flex justify-center">
232
+ <form [formGroup]="exampleForm" (ngSubmit)="onSubmit()" class="flex flex-col gap-4">
233
+ <div class="flex flex-col gap-1">
234
+ <textarea rows="5" cols="30" pTextarea formControlName="address" [invalid]="isInvalid('address')"></textarea>
235
+ @if (isInvalid('address')) {
236
+ <p-message severity="error" size="small" variant="simple">Address is required..</p-message>
237
+ }
238
+ </div>
239
+ <button pButton severity="secondary" type="submit"><span pButtonLabel>Submit</span></button>
240
+ </form>
241
+ </div>
242
+ `,
243
+ standalone: true,
244
+ imports: [MessageModule, ToastModule, ButtonModule, ReactiveFormsModule]
245
+ })
246
+ export class TextareaReactiveformsDemo {
247
+ messageService = inject(MessageService);
248
+ items: any[] | undefined;
249
+ exampleForm: FormGroup | undefined;
250
+ formSubmitted: boolean = false;
251
+
252
+ constructor() {
253
+ this.exampleForm = this.fb.group({
254
+ address: ['', Validators.required]
255
+ });
256
+ }
257
+
258
+ onSubmit() {
259
+ this.formSubmitted = true;
260
+ if (this.exampleForm.valid) {
261
+ this.messageService.add({ severity: 'success', summary: 'Success', detail: 'Form is submitted', life: 3000 });
262
+ this.exampleForm.reset();
263
+ this.formSubmitted = false;
264
+ }
265
+ }
266
+
267
+ isInvalid(controlName: string) {
268
+ const control = this.exampleForm.get(controlName);
269
+ return control?.invalid && (control.touched || this.formSubmitted);
270
+ }
271
+ }
272
+ ```
273
+
274
+ ## Sizes
275
+
276
+ Textarea provides small and large sizes as alternatives to the base.
277
+
278
+ ```typescript
279
+ import { Component } from '@angular/core';
280
+ import { FormsModule } from '@angular/forms';
281
+
282
+ @Component({
283
+ template: `
284
+ <div class="card flex flex-col items-center gap-4">
285
+ <textarea pTextarea [(ngModel)]="value1" pSize="small" placeholder="Small" rows="3"></textarea>
286
+ <textarea pTextarea [(ngModel)]="value2" placeholder="Normal" rows="3"></textarea>
287
+ <textarea pTextarea [(ngModel)]="value3" pSize="large" placeholder="Large" rows="3"></textarea>
288
+ </div>
289
+ `,
290
+ standalone: true,
291
+ imports: [FormsModule]
292
+ })
293
+ export class TextareaSizesDemo {
294
+ value1!: string;
295
+ value2!: string;
296
+ value3!: string;
297
+ }
298
+ ```
299
+
300
+ ## templatedrivenforms-doc
301
+
302
+ ```typescript
303
+ import { Component, inject } from '@angular/core';
304
+ import { FormsModule } from '@angular/forms';
305
+ import { MessageModule } from '@exhaustive-ui/core/message';
306
+ import { ToastModule } from '@exhaustive-ui/core/toast';
307
+ import { ButtonModule } from '@exhaustive-ui/core/button';
308
+ import { MessageService } from '@exhaustive-ui/core/api';
309
+
310
+ @Component({
311
+ template: `
312
+ <p-toast />
313
+ <div class="card flex justify-center">
314
+ <form #exampleForm="ngForm" (ngSubmit)="onSubmit(exampleForm)" (ngSubmit)="onSubmit(exampleForm)" class="flex flex-col gap-4">
315
+ <div class="flex flex-col gap-1">
316
+ <textarea name="address" #address="ngModel" rows="5" cols="30" [(ngModel)]="value" pTextarea [invalid]="address.invalid && (address.touched || exampleForm.submitted)" required></textarea>
317
+ @if (address.invalid && (address.touched || exampleForm.submitted)) {
318
+ <p-message severity="error" size="small" variant="simple">Address is required.</p-message>
319
+ }
320
+ </div>
321
+ <button pButton severity="secondary" type="submit"><span pButtonLabel>Submit</span></button>
322
+ </form>
323
+ </div>
324
+ `,
325
+ standalone: true,
326
+ imports: [MessageModule, ToastModule, ButtonModule, FormsModule]
327
+ })
328
+ export class TextareaTemplatedrivenformsDemo {
329
+ messageService = inject(MessageService);
330
+ items: any[] = [];
331
+ value: any;
332
+
333
+ onSubmit(form: any) {
334
+ if (form.valid) {
335
+ this.messageService.add({ severity: 'success', summary: 'Success', detail: 'Form is submitted', life: 3000 });
336
+ form.resetForm();
337
+ }
338
+ }
339
+ }
340
+ ```
341
+
342
+ ## Textarea
343
+
344
+ Textarea adds styling and autoResize functionality to standard textarea element.
345
+
346
+ ### Props
347
+
348
+ | Name | Type | Default | Description |
349
+ |------|------|---------|-------------|
350
+ | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
351
+ | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
352
+ | pt | InputSignal<TextareaPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
353
+ | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
354
+ | pTextareaPT | InputSignal<TextareaPassThrough> | undefined | Used to pass attributes to DOM elements inside the Textarea component. |
355
+ | pTextareaUnstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
356
+ | autoResize | InputSignalWithTransform<boolean, unknown> | ... | When present, textarea size changes as being typed. |
357
+ | pSize | InputSignal<"small" \| "large"> | ... | Defines the size of the component. |
358
+ | variant | InputSignal<"outlined" \| "filled"> | undefined | Specifies the input variant of the component. |
359
+ | fluid | InputSignalWithTransform<boolean, unknown> | undefined | Spans 100% width of the container when enabled. |
360
+ | invalid | InputSignalWithTransform<boolean, unknown> | false | When present, it specifies that the component should have invalid state style. |
361
+
362
+ ### Emits
363
+
364
+ | Name | Parameters | Description |
365
+ |------|------------|-------------|
366
+ | onResize | event: {} \| Event | Callback to invoke on textarea resize. |
367
+
368
+ ## Pass Through Options
369
+
370
+ | Name | Type | Description |
371
+ |------|------|-------------|
372
+ | host | PassThroughOption<HTMLTextAreaElement, I> | Used to pass attributes to the host's DOM element. |
373
+ | root | PassThroughOption<HTMLTextAreaElement, I> | Used to pass attributes to the root's DOM element. |
374
+
375
+ ## Theming
376
+
377
+ ### CSS Classes
378
+
379
+ | Class | Description |
380
+ |-------|-------------|
381
+ | p-textarea | Class name of the root element |
382
+
383
+ ### Design Tokens
384
+
385
+ | Token | CSS Variable | Description |
386
+ |-------|--------------|-------------|
387
+ | textarea.background | --p-textarea-background | Background of root |
388
+ | textarea.disabled.background | --p-textarea-disabled-background | Disabled background of root |
389
+ | textarea.filled.background | --p-textarea-filled-background | Filled background of root |
390
+ | textarea.filled.hover.background | --p-textarea-filled-hover-background | Filled hover background of root |
391
+ | textarea.filled.focus.background | --p-textarea-filled-focus-background | Filled focus background of root |
392
+ | textarea.border.color | --p-textarea-border-color | Border color of root |
393
+ | textarea.hover.border.color | --p-textarea-hover-border-color | Hover border color of root |
394
+ | textarea.focus.border.color | --p-textarea-focus-border-color | Focus border color of root |
395
+ | textarea.invalid.border.color | --p-textarea-invalid-border-color | Invalid border color of root |
396
+ | textarea.color | --p-textarea-color | Color of root |
397
+ | textarea.disabled.color | --p-textarea-disabled-color | Disabled color of root |
398
+ | textarea.placeholder.color | --p-textarea-placeholder-color | Placeholder color of root |
399
+ | textarea.invalid.placeholder.color | --p-textarea-invalid-placeholder-color | Invalid placeholder color of root |
400
+ | textarea.shadow | --p-textarea-shadow | Shadow of root |
401
+ | textarea.padding.x | --p-textarea-padding-x | Padding x of root |
402
+ | textarea.padding.y | --p-textarea-padding-y | Padding y of root |
403
+ | textarea.border.radius | --p-textarea-border-radius | Border radius of root |
404
+ | textarea.focus.ring.width | --p-textarea-focus-ring-width | Focus ring width of root |
405
+ | textarea.focus.ring.style | --p-textarea-focus-ring-style | Focus ring style of root |
406
+ | textarea.focus.ring.color | --p-textarea-focus-ring-color | Focus ring color of root |
407
+ | textarea.focus.ring.offset | --p-textarea-focus-ring-offset | Focus ring offset of root |
408
+ | textarea.focus.ring.shadow | --p-textarea-focus-ring-shadow | Focus ring shadow of root |
409
+ | textarea.transition.duration | --p-textarea-transition-duration | Transition duration of root |
410
+ | textarea.sm.font.size | --p-textarea-sm-font-size | Sm font size of root |
411
+ | textarea.sm.padding.x | --p-textarea-sm-padding-x | Sm padding x of root |
412
+ | textarea.sm.padding.y | --p-textarea-sm-padding-y | Sm padding y of root |
413
+ | textarea.lg.font.size | --p-textarea-lg-font-size | Lg font size of root |
414
+ | textarea.lg.padding.x | --p-textarea-lg-padding-x | Lg padding x of root |
415
+ | textarea.lg.padding.y | --p-textarea-lg-padding-y | Lg padding y of root |
416
+