@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,178 @@
|
|
|
1
|
+
# Tag
|
|
2
|
+
|
|
3
|
+
Tag component is used to categorize content.
|
|
4
|
+
|
|
5
|
+
## Basic
|
|
6
|
+
|
|
7
|
+
A small label for categorizing or marking items.
|
|
8
|
+
|
|
9
|
+
```vue
|
|
10
|
+
<template>
|
|
11
|
+
<div class="flex items-center justify-center">
|
|
12
|
+
<Tag severity="contrast" value="Highlighted" />
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Severity
|
|
18
|
+
|
|
19
|
+
Severity defines the color of the tag, possible values are success , info , warn and danger in addition to the default theme color.
|
|
20
|
+
|
|
21
|
+
```vue
|
|
22
|
+
<template>
|
|
23
|
+
<div class="flex flex-wrap justify-center gap-2">
|
|
24
|
+
<Tag value="Primary"></Tag>
|
|
25
|
+
<Tag severity="secondary" value="Secondary"></Tag>
|
|
26
|
+
<Tag severity="success" value="Success"></Tag>
|
|
27
|
+
<Tag severity="info" value="Info"></Tag>
|
|
28
|
+
<Tag severity="warn" value="Warn"></Tag>
|
|
29
|
+
<Tag severity="danger" value="Danger"></Tag>
|
|
30
|
+
<Tag severity="contrast" value="Contrast"></Tag>
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Pill
|
|
36
|
+
|
|
37
|
+
Enabling rounded , displays a tag as a pill.
|
|
38
|
+
|
|
39
|
+
```vue
|
|
40
|
+
<template>
|
|
41
|
+
<div class="flex flex-wrap justify-center gap-2">
|
|
42
|
+
<Tag value="Primary" rounded></Tag>
|
|
43
|
+
<Tag severity="secondary" value="Secondary" rounded></Tag>
|
|
44
|
+
<Tag severity="success" value="Success" rounded></Tag>
|
|
45
|
+
<Tag severity="info" value="Info" rounded></Tag>
|
|
46
|
+
<Tag severity="warn" value="Warn" rounded></Tag>
|
|
47
|
+
<Tag severity="danger" value="Danger" rounded></Tag>
|
|
48
|
+
<Tag severity="contrast" value="Contrast" rounded></Tag>
|
|
49
|
+
</div>
|
|
50
|
+
</template>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Icon
|
|
54
|
+
|
|
55
|
+
Place the icon left or right of the label.
|
|
56
|
+
|
|
57
|
+
```vue
|
|
58
|
+
<template>
|
|
59
|
+
<div class="flex flex-wrap justify-center gap-2">
|
|
60
|
+
<Tag>
|
|
61
|
+
<User />
|
|
62
|
+
Primary
|
|
63
|
+
</Tag>
|
|
64
|
+
<Tag severity="secondary">
|
|
65
|
+
<User />
|
|
66
|
+
Secondary
|
|
67
|
+
</Tag>
|
|
68
|
+
<Tag severity="success">
|
|
69
|
+
<Check />
|
|
70
|
+
Success
|
|
71
|
+
</Tag>
|
|
72
|
+
<Tag severity="info">
|
|
73
|
+
<Search />
|
|
74
|
+
Info
|
|
75
|
+
</Tag>
|
|
76
|
+
<Tag severity="warn">
|
|
77
|
+
<ExclamationTriangle />
|
|
78
|
+
Warn
|
|
79
|
+
</Tag>
|
|
80
|
+
<Tag severity="danger">
|
|
81
|
+
<Times />
|
|
82
|
+
Danger
|
|
83
|
+
</Tag>
|
|
84
|
+
<Tag severity="contrast">
|
|
85
|
+
<Cog />
|
|
86
|
+
Contrast
|
|
87
|
+
</Tag>
|
|
88
|
+
</div>
|
|
89
|
+
</template>
|
|
90
|
+
|
|
91
|
+
<script setup>
|
|
92
|
+
import Check from '@primeicons/vue/check';
|
|
93
|
+
import Cog from '@primeicons/vue/cog';
|
|
94
|
+
import ExclamationTriangle from '@primeicons/vue/exclamation-triangle';
|
|
95
|
+
import Search from '@primeicons/vue/search';
|
|
96
|
+
import Times from '@primeicons/vue/times';
|
|
97
|
+
import User from '@primeicons/vue/user';
|
|
98
|
+
<\/script>
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## Template
|
|
102
|
+
|
|
103
|
+
Children of the component are passed as the content for templating.
|
|
104
|
+
|
|
105
|
+
```vue
|
|
106
|
+
<template>
|
|
107
|
+
<div class="flex justify-center">
|
|
108
|
+
<Tag class="flex items-center gap-2 px-3" style="border: 2px solid var(--border-color); background: transparent; color: var(--text-color)">
|
|
109
|
+
<img alt="Country" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" class="flag flag-it" style="width: 18px" />
|
|
110
|
+
<span class="text-base">Italy</span>
|
|
111
|
+
</Tag>
|
|
112
|
+
</div>
|
|
113
|
+
</template>
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## Accessibility
|
|
117
|
+
|
|
118
|
+
Screen Reader Tag does not include any roles and attributes by default, any attribute is passed to the root element so aria roles and attributes can be added if required. If the tags are dynamic, aria-live may be utilized as well. In case badges need to be tabbable, tabIndex can be added to implement custom key handlers. Keyboard Support Component does not include any interactive elements.
|
|
119
|
+
|
|
120
|
+
## Tag API
|
|
121
|
+
|
|
122
|
+
### Props
|
|
123
|
+
|
|
124
|
+
| Name |Type |Default |Description |
|
|
125
|
+
| --- | --- | --- | --- |
|
|
126
|
+
| value | any | - | Value to display inside the tag. |
|
|
127
|
+
| severity | HintedString<"secondary" \| "info" \| "success" \| "warn" \| "danger" \| "contrast"> | - | Severity type of the tag. |
|
|
128
|
+
| rounded | boolean | false | Whether the corners of the tag are rounded. |
|
|
129
|
+
| icon | string | - | Icon of the tag to display next to the value. |
|
|
130
|
+
| dt | any | - | It generates scoped CSS variables using design tokens for the component. |
|
|
131
|
+
| pt | PassThrough<TagPassThroughOptions> | - | Used to pass attributes to DOM elements inside the component. |
|
|
132
|
+
| ptOptions | any | - | Used to configure passthrough(pt) options of the component. |
|
|
133
|
+
| unstyled | boolean | false | When enabled, it removes component related styles in the core. |
|
|
134
|
+
|
|
135
|
+
### Pass Through Options
|
|
136
|
+
|
|
137
|
+
| Name |Type |Description |
|
|
138
|
+
| --- | --- | --- |
|
|
139
|
+
| root | TagPassThroughOptionType | Used to pass attributes to the root's DOM element. |
|
|
140
|
+
| icon | TagPassThroughOptionType | Used to pass attributes to the icon's DOM element. |
|
|
141
|
+
| label | TagPassThroughOptionType | Used to pass attributes to the label's DOM element. |
|
|
142
|
+
| hooks | any | Used to manage all lifecycle hooks. |
|
|
143
|
+
|
|
144
|
+
### Theming
|
|
145
|
+
|
|
146
|
+
### CSS Classes
|
|
147
|
+
|
|
148
|
+
| Class |Description |
|
|
149
|
+
| --- | --- |
|
|
150
|
+
| p-tag | Class name of the root element |
|
|
151
|
+
| p-tag-icon | Class name of the icon element |
|
|
152
|
+
| p-tag-label | Class name of the label element |
|
|
153
|
+
|
|
154
|
+
### Design Tokens
|
|
155
|
+
|
|
156
|
+
| Token |CSS Variable |Description |
|
|
157
|
+
| --- | --- | --- |
|
|
158
|
+
| tag.font.size | --p-tag-font-size | Font size of root |
|
|
159
|
+
| tag.font.weight | --p-tag-font-weight | Font weight of root |
|
|
160
|
+
| tag.padding | --p-tag-padding | Padding of root |
|
|
161
|
+
| tag.gap | --p-tag-gap | Gap of root |
|
|
162
|
+
| tag.border.radius | --p-tag-border-radius | Border radius of root |
|
|
163
|
+
| tag.rounded.border.radius | --p-tag-rounded-border-radius | Rounded border radius of root |
|
|
164
|
+
| tag.icon.size | --p-tag-icon-size | Size of icon |
|
|
165
|
+
| tag.primary.background | --p-tag-primary-background | Background of primary |
|
|
166
|
+
| tag.primary.color | --p-tag-primary-color | Color of primary |
|
|
167
|
+
| tag.secondary.background | --p-tag-secondary-background | Background of secondary |
|
|
168
|
+
| tag.secondary.color | --p-tag-secondary-color | Color of secondary |
|
|
169
|
+
| tag.success.background | --p-tag-success-background | Background of success |
|
|
170
|
+
| tag.success.color | --p-tag-success-color | Color of success |
|
|
171
|
+
| tag.info.background | --p-tag-info-background | Background of info |
|
|
172
|
+
| tag.info.color | --p-tag-info-color | Color of info |
|
|
173
|
+
| tag.warn.background | --p-tag-warn-background | Background of warn |
|
|
174
|
+
| tag.warn.color | --p-tag-warn-color | Color of warn |
|
|
175
|
+
| tag.danger.background | --p-tag-danger-background | Background of danger |
|
|
176
|
+
| tag.danger.color | --p-tag-danger-color | Color of danger |
|
|
177
|
+
| tag.contrast.background | --p-tag-contrast-background | Background of contrast |
|
|
178
|
+
| tag.contrast.color | --p-tag-contrast-color | Color of contrast |
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# Terminal
|
|
2
|
+
|
|
3
|
+
Terminal is a text-based interface component that emulates a command line experience, enabling users to enter commands and receive responses.
|
|
4
|
+
|
|
5
|
+
## Basic
|
|
6
|
+
|
|
7
|
+
An interactive terminal that accepts and responds to text commands.
|
|
8
|
+
|
|
9
|
+
```vue
|
|
10
|
+
<template>
|
|
11
|
+
<Terminal welcomeMessage='Welcome to PrimeVue Terminal. Type "help" for available commands.' prompt="$" />
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script setup>
|
|
15
|
+
import { onMounted, onBeforeUnmount } from 'vue';
|
|
16
|
+
import TerminalService from 'primevue/terminalservice';
|
|
17
|
+
|
|
18
|
+
const commandHandler = (text) => {
|
|
19
|
+
const argsIndex = text.indexOf(' ');
|
|
20
|
+
const command = argsIndex !== -1 ? text.substring(0, argsIndex) : text;
|
|
21
|
+
|
|
22
|
+
let response;
|
|
23
|
+
|
|
24
|
+
switch (command) {
|
|
25
|
+
case 'help':
|
|
26
|
+
response = 'Available commands:\\n date - Display current date and time\\n greet - Get a personalized greeting\\n random - Generate a random number\\n clear - Clear the terminal';
|
|
27
|
+
break;
|
|
28
|
+
|
|
29
|
+
case 'date':
|
|
30
|
+
response = new Date().toLocaleString();
|
|
31
|
+
break;
|
|
32
|
+
|
|
33
|
+
case 'greet': {
|
|
34
|
+
const name = text.substring(argsIndex + 1).trim() || 'World';
|
|
35
|
+
response = \`Hello, \${name}!\`;
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
case 'random':
|
|
40
|
+
response = \`Your random number: \${Math.floor(Math.random() * 100)}\`;
|
|
41
|
+
break;
|
|
42
|
+
|
|
43
|
+
default:
|
|
44
|
+
response = \`Command not found: \${command}. Type "help" for available commands.\`;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
TerminalService.emit('response', response);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
onMounted(() => {
|
|
51
|
+
TerminalService.on('command', commandHandler);
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
onBeforeUnmount(() => {
|
|
55
|
+
TerminalService.off('command', commandHandler);
|
|
56
|
+
});
|
|
57
|
+
<\/script>
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Accessibility
|
|
61
|
+
|
|
62
|
+
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.
|
|
63
|
+
|
|
64
|
+
## Terminal API
|
|
65
|
+
|
|
66
|
+
### Props
|
|
67
|
+
|
|
68
|
+
| Name |Type |Default |Description |
|
|
69
|
+
| --- | --- | --- | --- |
|
|
70
|
+
| welcomeMessage | string | - | Initial text to display on terminal. |
|
|
71
|
+
| prompt | string | - | Prompt text for each command. |
|
|
72
|
+
| dt | any | - | It generates scoped CSS variables using design tokens for the component. |
|
|
73
|
+
| pt | PassThrough<TerminalPassThroughOptions> | - | Used to pass attributes to DOM elements inside the component. |
|
|
74
|
+
| ptOptions | any | - | Used to configure passthrough(pt) options of the component. |
|
|
75
|
+
| unstyled | boolean | false | When enabled, it removes component related styles in the core. |
|
|
76
|
+
|
|
77
|
+
### Pass Through Options
|
|
78
|
+
|
|
79
|
+
| Name |Type |Description |
|
|
80
|
+
| --- | --- | --- |
|
|
81
|
+
| root | TerminalPassThroughOptionType | Used to pass attributes to the root's DOM element. |
|
|
82
|
+
| welcomeMessage | TerminalPassThroughOptionType | Used to pass attributes to the welcome message's DOM element. |
|
|
83
|
+
| content | TerminalPassThroughOptionType | Used to pass attributes to the content's DOM element. |
|
|
84
|
+
| commands | TerminalPassThroughOptionType | Used to pass attributes to the commands' DOM element. |
|
|
85
|
+
| prompt | TerminalPassThroughOptionType | Used to pass attributes to the prompt's DOM element. |
|
|
86
|
+
| command | TerminalPassThroughOptionType | Used to pass attributes to the command's DOM element. |
|
|
87
|
+
| response | TerminalPassThroughOptionType | Used to pass attributes to the response's DOM element. |
|
|
88
|
+
| container | TerminalPassThroughOptionType | Used to pass attributes to the container's DOM element. |
|
|
89
|
+
| commandText | TerminalPassThroughOptionType | Used to pass attributes to the command text's DOM element. |
|
|
90
|
+
| hooks | any | Used to manage all lifecycle hooks. |
|
|
91
|
+
|
|
92
|
+
### Theming
|
|
93
|
+
|
|
94
|
+
### CSS Classes
|
|
95
|
+
|
|
96
|
+
| Class |Description |
|
|
97
|
+
| --- | --- |
|
|
98
|
+
| p-terminal | Class name of the root element |
|
|
99
|
+
| p-terminal-welcome-message | Class name of the welcome message element |
|
|
100
|
+
| p-terminal-command-list | Class name of the command list element |
|
|
101
|
+
| p-terminal-command | Class name of the command element |
|
|
102
|
+
| p-terminal-command-value | Class name of the command value element |
|
|
103
|
+
| p-terminal-command-response | Class name of the command response element |
|
|
104
|
+
| p-terminal-prompt | Class name of the prompt element |
|
|
105
|
+
| p-terminal-prompt-label | Class name of the prompt label element |
|
|
106
|
+
| p-terminal-prompt-value | Class name of the prompt value element |
|
|
107
|
+
|
|
108
|
+
### Design Tokens
|
|
109
|
+
|
|
110
|
+
| Token |CSS Variable |Description |
|
|
111
|
+
| --- | --- | --- |
|
|
112
|
+
| terminal.background | --p-terminal-background | Background of root |
|
|
113
|
+
| terminal.border.color | --p-terminal-border-color | Border color of root |
|
|
114
|
+
| terminal.color | --p-terminal-color | Color of root |
|
|
115
|
+
| terminal.height | --p-terminal-height | Height of root |
|
|
116
|
+
| terminal.padding | --p-terminal-padding | Padding of root |
|
|
117
|
+
| terminal.border.radius | --p-terminal-border-radius | Border radius of root |
|
|
118
|
+
| terminal.font.weight | --p-terminal-font-weight | Font weight of root |
|
|
119
|
+
| terminal.font.size | --p-terminal-font-size | Font size of root |
|
|
120
|
+
| terminal.prompt.gap | --p-terminal-prompt-gap | Gap of prompt |
|
|
121
|
+
| terminal.command.response.margin | --p-terminal-command-response-margin | Margin of command response |
|
|
122
|
+
|
|
123
|
+
## Terminal Service API
|