Migration to v5

Migration guide to PrimeVue v5.

PrimeVue v5 is the first release under the PrimeUI umbrella. Licensing moves to a dual Community/Commercial model. Read the full story for the background and road ahead.

Breaking Changes

PrimeVue follows semantic versioning, and this release introduces no breaking changes to the public component APIs. Existing applications should upgrade without code edits. If you encounter a regression that looks like a breaking change, please open an issue so we can address it.

PRO Suite

PrimeUI PRO is the new enterprise tier from PrimeTek, expanding the suite with production-ready components.

New Components

v5 introduces a fresh set of components:

Enhancements

Several existing components have also been reworked:

  • Carousel rebuilt around a compound API.
  • Menu now supports multi-level navigation.
  • Toast ships with new entry and exit animations.
  • InputMask is now a directive rather than a component.
  • Wide-ranging defect fixes across the suite.
  • New documentation and demos.

16px Base

PrimeVue sizes its components in rem units relative to the document root font size, now assumed to be 16px to match the browser default. Earlier versions assumed 14px, so every preset also ships a compat variant calibrated for a 14px root to keep existing layouts intact. See Base Font Size for technical details.

The following APIs are marked as deprecated in v5 and will be removed in a future major version. They continue to function in v5 so you can migrate gradually.

APIDeprecated SinceReplacementRemovalStatus
MultiSelectv5Select component with multiple propertyv6deprecated
Galleriav5Gallery componentv6deprecated
Imagev5Gallery componentv6deprecated
ColorPickerv5InputColor componentv6deprecated
ImageComparev5Compare componentv6deprecated
ScrollPanelv5ScrollArea componentv6deprecated
Passwordv5InputPassword componentv6deprecated
InputMaskv5Mask directivev6deprecated
PanelMenuv5Menu component with toggleable optionv6deprecated
Chartv5PrimeUI PRO Chartsv6deprecated
Editorv5PrimeUI PRO Editorv6deprecated
@primevue/icons packagev5SVG icons via @primeicons/vuev6deprecated
AutoComplete multiple propertyv5InputTags component with typeaheadv6deprecated
Button label, icon, iconPos, iconClass propertiesv5Place the icon and label directly inside the default slot, ordering them as neededv6deprecated
Button badge, badgeClass, badgeSeverity propertiesv5Compose a Badge component inside the default slotv6deprecated
Button loading and loadingIcon propertiesv5Render your own spinner inside the default slot and toggle disabledv6deprecated
Tabs scrollable propertyv5Scrolling is now the default behavior if necessaryv6deprecated
Carousel data-driven (value) usagev5Compound API with CarouselContent, CarouselItem and CarouselIndicators helpers.v6deprecated

The list of items that were deprecated in previous releases and removed in this iteration.

APIDeprecated InReplacementStatus
Calendarv4DatePicker componentremoved
Dropdownv4Select componentremoved
Chipsv4InputTags componentremoved
InputChipsv4InputTags componentremoved
InputSwitchv4ToggleSwitch componentremoved
OverlayPanelv4Popover componentremoved
TabViewv4Tabs componentremoved
AccordionTabv4Accordion with AccordionPanel / AccordionHeader / AccordionContentremoved
BadgeDirective (v-badge)v4OverlayBadge componentremoved
InlineMessagev4Message componentremoved
TabMenuv4Tabs component (without panels)removed
AutoComplete removeTokenIcon property and removetokenicon slotv4chipIcon property and chipicon slotremoved
AutoComplete item-select / item-unselect eventsv4option-select / option-unselect eventsremoved
AutoComplete loadingIcon property and loadingicon slotv4loader property and loader slotremoved
AutoComplete dropdownbutton slotv4dropdown slotremoved
Accordion activeIndex property and update:activeIndex / tab-open / tab-close / tab-click eventsv4value property and update:value eventremoved
Button plain propertyv4contrast severityremoved
PrimeVue config inputStyle optionv4inputVariant optionremoved
CascadeSelect panelStyle / panelClass / panelProps propertiesv4overlayStyle / overlayClass / overlayProps propertiesremoved
Select panelStyle / panelClass propertiesv4overlayStyle / overlayClass propertiesremoved
InputNumber incrementButtonIcon / decrementButtonIcon properties and incrementbuttonicon / decrementbuttonicon slotsv4incrementIcon / decrementIcon properties and incrementicon / decrementicon slotsremoved
Column rowtogglericon / nodetogglericon slotsv4rowtoggleicon / nodetoggleicon slotsremoved
DataTable reorderindicatorupicon / reorderindicatordownicon slotsv4rowreorderindicatorupicon / rowreorderindicatordownicon slotsremoved
Tree searchicon / togglericon / nodetogglericon slotsv4filtericon / nodetoggleicon slotsremoved
TreeSelect itemtogglericon slotv4itemtoggleicon slotremoved
TreeSelect triggericon slotv4dropdownicon slotremoved
Dock icon slotv4itemicon slotremoved
Menu submenuheader slotv4submenulabel slotremoved
Menubar menubutton / menubuttonicon slotsv4button / buttonicon slotsremoved
MegaMenu menubutton / menubuttonicon slotsv4button / buttonicon slotsremoved
Message sticky propertyv4life property to control auto-closeremoved
UniqueComponentId utility (@primevue/core/utils)v4uuid from @primeuix/utilsremoved
Component instance hasFluid getter (BaseInput)v4$fluidremoved
Component instance filled getter (BaseEditableHolder)v4$filledremoved
Root element $pc marker (set on each component's root DOM element)v4No replacement (internal)removed
Paginator firstpagelinkicon / prevpagelinkicon / nextpagelinkicon / lastpagelinkicon slotsv4firsticon / previcon / nexticon / lasticon slotsremoved
Panel / Fieldset togglericon slotv4toggleicon slotremoved
SplitButton menubuttonicon slotv4dropdownicon slotremoved
Toast icon slotv4messageicon slotremoved
OrderList / PickList item slotv4option slotremoved
TabPanel header / headerStyle / headerClass / headerProps / headerActionProps / contentStyle / contentClass / contentProps / disabled properties and header slot (TabView-only) v4Tabs structure (Tab / TabList / TabPanels)removed
switchTheme functionv4usePreset and related theme APIsremoved
primevue/themes presetsv4@primeuix/themesremoved
nuxt-primevue modulev4@primevue/nuxt-moduleremoved
Theme Designer