primevue-skilld
БесплатноБез исполняемых скриптовНе проверенUse when writing, debugging, or updating code that imports primevue (PrimeVue v5, UI component library for Vue 3). Provides setup with the required PrimeUI…
от skilld-dev★ 188 звёзд на GitHubОб этом скилле
PrimeVue ([email protected])
Version 5.0.1, prepared source input/source/package.json. UI component library for Vue 3.
Docs: https://primevue.dev (component pages live at https://primevue.dev/<name>, e.g. https://primevue.dev/inputtags/).
Critical v5 facts
- License key required. v5 ships under the PrimeUI dual license (free Community or paid Commercial). Pass the key as a
licensestring option when installing the plugin. Verification is offline; a missing, invalid, or expired key may display a license notice (input/source/LICENSE.md). - No breaking public API changes from v4, per the official migration guide (https://primevue.dev/migration/v5/). Deprecated v4 APIs still work in v5 and are removed in v6. Write new code against the replacements in v5 changes.
- 16px root font base. v5 assumes a 16px document root; v4 assumed 14px. Every preset ships a
-compatvariant for 14px layouts, maintained until June 2027 (https://primevue.dev/theming/styled/). - Config plugin. Install once with
app.use. The default export ofprimevue/configis also re-exported asConfigfrom the package root (input/source/index.mjs:139).
Setup
// main.js
import { createApp } from 'vue';
import PrimeVue from 'primevue/config'; // or: import { Config } from 'primevue'
import Aura from '@primeuix/themes/aura';
import App from './App.vue';
const app = createApp(App);
app.use(PrimeVue, {
license: '<your PrimeUI license key>',
ripple: true, // optional, disabled by default
theme: {
preset: Aura,
options: {
darkModeSelector: '.app-dark' // default is 'system'
}
}
});
Details: theme options, locale, unstyled mode, Nuxt module, auto import in setup.
Import patterns
<script setup>
// Tree-shakeable subpath imports (package.json exports map "./*")
import Button from 'primevue/button';
import Select from 'primevue/select';
// Style classes for a component (design token CSS)
import SelectStyle from 'primevue/select/style';
</script>
- Root import
from 'primevue'also works and exports every component, style, service, and composable (input/source/index.mjs). - Icons: SVG icon components come from
@primeicons/vue(dependency^8.0.0ininput/source/package.json). The@primevue/iconspackage is deprecated in v5.
Golden rules
- Never use a deprecated component in new code. Deprecated in v5 (removal in v6):
MultiSelect,Galleria,Image,ColorPicker,ImageCompare,ScrollPanel,Password,InputMask(component),PanelMenu,Chart,Editor,AutoCompletewithmultiple,Carouseldriven byvalue,Tabsscrollable. Use the replacement table in v5 changes. - Buttons compose content in the default slot.
label,icon,iconPos,iconClass,badge,badgeClass,badgeSeverity,loading,loadingIconprops are all deprecated since v5.0.0 (input/source/button/index.d.ts). - Compound components over prop-driven templates:
Tabs/TabList/Tab/TabPanels/TabPanel,Accordion/AccordionPanel/AccordionHeader/AccordionContent,Stepperfamily,Sidebarfamily,Galleryfamily,Carouselfamily. Active state binds withv-model:value(Accordion'sactiveIndexprop and events were removed in v5). - Overlays are Teleport-based: set
appendTo="body"(default) or"self"; most overlay components acceptoverlayStyle/overlayClass(panel* props were removed in v5). - Prefer design tokens over CSS overrides: use
dtprop for scoped tokens and preset customization viadefinePresetinstead of:deep()or style classes (https://primevue.dev/theming/styled/).
Common tasks
Button (slot composition)
<Button severity="contrast" size="small">
<i class="pi pi-check" />
<span>Confirm</span>
<Badge value="2" />
</Button>
Icon order in the slot replaces iconPos; use disabled plus your own spinner instead of loading.
Multiple selection (replaces MultiSelect)
<Select v-model="selectedCities" multiple :options="cities" optionLabel="name" fluid />
multiple on Select ("When specified, allows selecting multiple values", input/source/select/index.d.ts).
Tags input (replaces AutoComplete multiple)
<InputTags v-model="tags" typeahead :suggestions="suggestions" @complete="search" delimiter="," />
Key props: max, allowDuplicate, addOnBlur, addOnPaste, addOnTab, delimiter (string or RegExp). Emits add, remove, option-select, complete (input/source/inputtags/index.d.ts).
Toast service
// main.js: app.use(ToastService)
import { useToast } from 'primevue/usetoast';
const toast = useToast();
toast.add({ severity: 'info', summary: 'Saved', life: 3000 });
Service methods: add, remove, removeGroup, removeAllGroups (input/source/toastservice/index.d.ts). Same pattern for
Установить primevue-skilld в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл primevue-skilld?
Use when writing, debugging, or updating code that imports primevue (PrimeVue v5, UI component library for Vue 3). Provides setup with the required PrimeUI license key, deprecated API replacements, compound component usage, and design token theming.
Как установить скилл primevue-skilld?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл primevue-skilld запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic