Skip to content

PrimeVue · PrimeNG · PrimeReact

The prime pack imitates the PrimeTek component suites in styled mode with the Aura theme preset — the design system shared by PrimeVue 4, PrimeNG 18+ and PrimeReact, so one pack covers all three. It follows the Aura design tokens at the 14 px root the showcase and the Sakai template use: emerald primary (primary.500 #10b981, primary.400 in dark mode), form fields with a 1 px surface.300 border, .5rem .75rem padding and a primary border on focus, borderRadius.md 6 px (4 px for list options, 12 px for cards and dialogs), soft color.100 / color.700 tags, tinted messages and toasts, and the Inter → system font stack. Light mode uses the slate surface scale, dark mode the zinc scale. Select it with

import PrimeVue      // or: import PrimeNG, import PrimeReact, import Prime

Elements use the PrimeVue component and prop names (PrimeNG's p- and PrimeReact's names are the same words): Button (severity: "secondary" | "success" | "info" | "warn" | "help" | "danger" | "contrast", variant: "outlined" | "text" | "link", rounded:, raised:, size:, badge:, loading:), SplitButton, SpeedDial, InputText, IconField, InputGroup, FloatLabel, InputNumber, InputMask, InputOtp, Password + PasswordMeter, Textarea, Select (and the pre-v4 Dropdown), MultiSelect, AutoComplete, CascadeSelect, TreeSelect, Listbox, Checkbox, RadioButton, ToggleSwitch, ToggleButton, SelectButton, Slider, Rating, Knob, DatePicker, ColorPicker, FileUpload, DataTable / Column / Row / Paginator, TreeTable, DataView, Tree / TreeNode, OrderList, PickList, Timeline, Panel, Fieldset, Card, Accordion / AccordionPanel, Tabs / Tab, Stepper, Toolbar, Splitter, Divider, Dialog, ConfirmDialog, ConfirmPopup, Drawer, Popover, Tooltip, Menu, Menubar, MegaMenu, TieredMenu, ContextMenu, PanelMenu, Breadcrumb, TabMenu, Steps, Dock, Toast, Message, Tag, Chip, Badge, OverlayBadge, Avatar / AvatarGroup, Skeleton, ProgressBar, ProgressSpinner, MeterGroup, Chart, Galleria, Image, Carousel, ScrollTop and BlockUI. Vue prop names work as labels (header:, legend:, invalid:, showClear:, toggleMask:, summary: / detail: on Toast, modelValue:), and PrimeIcons are accepted wherever an icon is: "pi pi-check", "pi-check" or "check".

The custom components on this page (BrandMark, AppTopbar, KpiCard, RowActions, StockTag, ProductRow, SettingRow, TransferControls) live in mockups/prime/blocks.mockitdown and are imported with import "prime/blocks". All content is invented; the brand mark is a neutral glyph.

Sign in

A centred sign-in card on the ground colour: InputText, Password with its eye toggle, Checkbox, a primary Button, a labelled Divider and a secondary outlined button.

https://app.example.com/auth/login
Northwind
Welcome backSign in to continue
amy.elsner@example.com
••••••••••••
Remember me
Forgot password?
Sign InSign in with SSO
Light
https://app.example.com/auth/login
Northwind
Welcome backSign in to continue
amy.elsner@example.com
••••••••••••
Remember me
Forgot password?
Sign InSign in with SSO
Dark
Sign in
Source
import PrimeVue
import "prime/blocks"

VStack {
  Spacer()
  HStack {
    Spacer()
    Card {
      VStack(spacing: 7) {
        BrandMark(name: "Northwind")
        Text("Welcome back").font(.title2).padding(.top, 14)
        Text("Sign in to continue").foregroundStyle(.secondary)
      }
      VStack(alignment: .stretch, spacing: 21) {
        InputText("Email address", value: "amy.elsner@example.com", label: "Email")
        Password("Password", value: "correct-horse", label: "Password", toggleMask: true).state(.focused)
        HStack {
          Checkbox("Remember me", checked: true)
          Spacer()
          Link("Forgot password?")
        }
        Button("Sign In").frame(maxWidth: .infinity)
        Divider(label: "OR")
        Button("Sign in with SSO", icon: "pi pi-key", severity: "secondary", variant: "outlined").frame(maxWidth: .infinity)
      }
      .padding(.top, 14)
    }
    .frame(width: 420)
    Spacer()
  }
  Spacer()
}
.frame(maxWidth: .infinity, maxHeight: .infinity)

Products — CRUD data table

The PrimeVue CRUD demo: a Toolbar with the New / Delete / Export actions, a DataTable with a header slot (title and IconField search), a filter row, multiple selection, a sorted column, Rating and status Tag cells, rounded outlined row actions and a Paginator footer — with the "Product Details" Dialog open over it.

https://app.example.com/inventory/products
Manage Products
Search…
CodeNamePriceCategoryReviewsStatus
Search by code
Search by name
Min price
Any category
 
Any status
 
f230fh0g3Bamboo Watch$65.00AccessoriesINSTOCK
nvklal433Black Watch$72.00AccessoriesINSTOCK
zz21cz3c1Blue Band$79.00FitnessLOWSTOCK
244wgerg2Blue T-Shirt$29.00ClothingINSTOCK
h456wer53Bracelet$15.00AccessoriesINSTOCK
av2231fwgBrown Purse$120.00AccessoriesOUTOFSTOCK
Products
Source
import PrimeVue
import "prime/blocks"

VStack(alignment: .stretch, spacing: 14) {
  Toolbar {
    Button("New", icon: "pi pi-plus")
    Button("Delete", icon: "pi pi-trash", severity: "danger", variant: "outlined")
    Spacer()
    Button("Export", icon: "pi pi-upload", severity: "secondary")
  }
  DataTable(columns: ["Code", "Name", "Price", "Category", "Reviews", "Status", ""],
            selectionMode: "multiple", sortField: 1) {
    Row(status: "filter") {
      InputText("Search by code", size: "small")
      InputText("Search by name", size: "small")
      InputNumber("Min price", size: "small")
      Select("Any category", size: "small")
      Text("")
      Select("Any status", size: "small")
      Text("")
    }
    ProductRow(code: "f230fh0g3", name: "Bamboo Watch", price: "$65.00", category: "Accessories", rating: 5, status: "INSTOCK")
    ProductRow(code: "nvklal433", name: "Black Watch", price: "$72.00", category: "Accessories", rating: 4, status: "INSTOCK", selected: true)
    ProductRow(code: "zz21cz3c1", name: "Blue Band", price: "$79.00", category: "Fitness", rating: 3, status: "LOWSTOCK", selected: true)
    ProductRow(code: "244wgerg2", name: "Blue T-Shirt", price: "$29.00", category: "Clothing", rating: 5, status: "INSTOCK")
    ProductRow(code: "h456wer53", name: "Bracelet", price: "$15.00", category: "Accessories", rating: 4, status: "INSTOCK")
    ProductRow(code: "av2231fwg", name: "Brown Purse", price: "$120.00", category: "Accessories", rating: 4, status: "OUTOFSTOCK")
  } header: {
    Text("Manage Products").font(.title3)
    Spacer()
    IconField("Search…").frame(width: 240)
  } footer: {
    Paginator(count: 6, page: 1, summary: "Showing 1 to 6 of 30 products")
  }
}
.padding(28)

Dialog(header: "Product Details") {
  VStack(alignment: .stretch, spacing: 17) {
    InputText("Name", value: "Blue Band", label: "Name", required: true)
    Textarea("Description", value: "Lightweight silicone band in ocean blue.", label: "Description", rows: 2)
    VStack(alignment: .leading, spacing: 10) {
      Text("Category").fontWeight(.medium)
      Grid(columns: 2, spacing: 10) {
        RadioButton("Accessories")
        RadioButton("Clothing")
        RadioButton("Electronics")
        RadioButton("Fitness", checked: true)
      }
    }
    HStack(alignment: .top, spacing: 14) {
      InputNumber("Price", value: "79.00", label: "Price", prefix: "$")
      InputNumber("Quantity", value: 12, label: "Quantity", invalid: true, helper: "Quantity must be at least 20 for low stock.")
    }
  }
} footer: {
  Button("Cancel", icon: "pi pi-times", variant: "text")
  Button("Save", icon: "pi pi-check")
}

Dashboard

A Sakai-style dashboard: the AppTopbar block, a PanelMenu sidebar, four KpiCards 1, a stacked bar Chart 2, a MeterGroup with a Knob 3 and a compact DataTable of recent sales with a Timeline beside it 4.

https://app.example.com/
Northwind
Search
3
Home
Sales
Reports
Settings
Orders152
24 newsince last visit
Revenue$2,100
%52+since last week
Customers28,441
520newly registered
Comments152 Unread
85responded
1KpiCard
Revenue Stream
SubscriptionsAdvertisingAffiliate
2Chart
Storage
Apps (16%)Messages (8%)Media (24%)System (10%)
58%
58 GB of 100 GB usedUpgrade to keep your media in the cloud.Upgrade plan
3MeterGroup + Knob
Recent Sales
ProductPriceStatus
Bamboo Watch$65.00Delivered
Black Watch$72.00Pending
Blue Band$79.00Delivered
Brown Purse$120.00Cancelled
4DataTable
Order #1042
Nov 18, 10:30
Ordered
Nov 18, 14:00
Processing
Nov 19, 16:15
Shipped
Expected Nov 21
Delivered
1KpiCard
2Chart
3MeterGroup + Knob
4DataTable
Light
https://app.example.com/
Northwind
Search
3
Home
Sales
Reports
Settings
Orders152
24 newsince last visit
Revenue$2,100
%52+since last week
Customers28,441
520newly registered
Comments152 Unread
85responded
1KpiCard
Revenue Stream
SubscriptionsAdvertisingAffiliate
2Chart
Storage
Apps (16%)Messages (8%)Media (24%)System (10%)
58%
58 GB of 100 GB usedUpgrade to keep your media in the cloud.Upgrade plan
3MeterGroup + Knob
Recent Sales
ProductPriceStatus
Bamboo Watch$65.00Delivered
Black Watch$72.00Pending
Blue Band$79.00Delivered
Brown Purse$120.00Cancelled
4DataTable
Order #1042
Nov 18, 10:30
Ordered
Nov 18, 14:00
Processing
Nov 19, 16:15
Shipped
Expected Nov 21
Delivered
1KpiCard
2Chart
3MeterGroup + Knob
4DataTable
Dark
Dashboard

The KPI row 1 repeats one custom component four times; the icon tile is an Avatar whose color: picks the tint. The chart 2 is Chart(type: "bar", stacked: true) with the Chart.js legend on top. Storage 3 combines a MeterGroup — values in percent, labels as seriesNames — with a Knob. The sales table 4 is a DataTable(size: "small") inside a Card.

Registration with validation

A multi-step form: a Stepper on step 2, an error Message, invalid fields with variant: "simple" messages under them, a MultiSelect with chips, an open AutoComplete, a DatePicker, InputMask, InputNumber, Password with its strength meter, a RadioButtonGroup and a required Checkbox.

https://app.example.com/register
Account
2Profile
3Plan
4Confirm
ProfileTell us a little about yourself.
First name
Elsner
(555) 01
May 14, 1994
DesignAnalyticsTravel
••••••••••
Medium
12 people
Neth
Netherlands
Netherlands Antilles
New Caledonia
Account type
PersonalBusinessNon-profit
I accept the terms and conditions
Back
Next
Create account
Source
import PrimeVue

VStack(alignment: .stretch, spacing: 21) {
  Stepper(items: ["Account", "Profile", "Plan", "Confirm"], current: 1)
  Message("Please correct the 2 highlighted fields.", severity: "error", icon: "pi pi-times-circle", showIcon: true)
  Card(title: "Profile", subtitle: "Tell us a little about yourself.") {
    Grid(columns: 2, spacing: 21) {
      VStack(alignment: .stretch, spacing: 6) {
        InputText("First name", value: "", label: "First name", invalid: true)
        Message("First name is required.", severity: "error", variant: "simple", size: "small")
      }
      InputText("Last name", value: "Elsner", label: "Last name")
      VStack(alignment: .stretch, spacing: 6) {
        InputMask("(999) 999-9999", value: "(555) 01", label: "Phone", invalid: true)
        Message("Enter a 10-digit phone number.", severity: "error", variant: "simple", size: "small")
      }
      DatePicker("Birthday", selection: "1994-05-14", label: "Birthday")
      MultiSelect("Select interests", selection: ["Design", "Analytics", "Travel"], label: "Interests")
      VStack(alignment: .stretch, spacing: 7) {
        Password("Password", value: "spring2026", label: "Password", toggleMask: true)
        PasswordMeter(value: 66, label: "Medium", color: "medium")
      }
      InputNumber("Team size", value: 12, label: "Team size", suffix: " people")
      AutoComplete("Country", value: "Neth", label: "Country", options: ["Netherlands", "Netherlands Antilles", "New Caledonia"], open: true).state(.focused)
    }
    RadioButtonGroup("Account type", options: ["Personal", "Business", "Non-profit"], selection: "Business")
    Checkbox("I accept the terms and conditions", invalid: true)
  } footer: {
    Button("Back", icon: "pi pi-arrow-left", severity: "secondary")
    Spacer()
    Button("Next", icon: "pi pi-arrow-right", iconPos: "right")
  }
}
.padding(28)

Settings

Tabs with icons, an Avatar with a basic FileUpload button, InputGroup, Textarea, a Fieldset of SettingRows (ToggleSwitch), SelectButton, ColorPicker, Slider, ToggleButton, InputOtp and a ConfirmPopup asking before the account is deleted.

https://app.example.com/settings
Settings
AccountNotifications3BillingSecurity
Profile photo
UploadRemove
Amy Elsner
northwind.app/amy
Head of operations. Coffee first, tickets second.
Two-factor authentication
Enter the 6-digit code from your authenticator app.
481
Notifications
Order updatesEmail me when an order changes status.
Weekly digestA Monday summary of last week's sales.
Product newsOccasional announcements and tips.
Appearance
ThemeLightDarkSystem
Accent colour
Font size
14
Compact tablesOn
Delete accountDelete your account and all of its data?
CancelDelete
Light
https://app.example.com/settings
Settings
AccountNotifications3BillingSecurity
Profile photo
UploadRemove
Amy Elsner
northwind.app/amy
Head of operations. Coffee first, tickets second.
Two-factor authentication
Enter the 6-digit code from your authenticator app.
481
Notifications
Order updatesEmail me when an order changes status.
Weekly digestA Monday summary of last week's sales.
Product newsOccasional announcements and tips.
Appearance
ThemeLightDarkSystem
Accent colour
Font size
14
Compact tablesOn
Delete accountDelete your account and all of its data?
CancelDelete
Dark
Settings

Team assignment — PickList and OrderList

PickList moves people between two Listboxes through the TransferControls column; OrderList reorders the on-call rotation with the up / top / down / bottom buttons.

https://app.example.com/teams/support
Support teamPick the people who answer customer tickets this quarter.
AvailableBernardo DominicElwin SharvillIoni BowcherOnyama LimbaXuxue Feng
SupportAmy ElsnerAnna FaliAsiya JavayantStephen Shaw
On-call rotation
Week order1 · Amy Elsner2 · Stephen Shaw3 · Anna Fali4 · Asiya Javayant
Teams
Source
import PrimeVue
import "prime/blocks"

VStack(alignment: .stretch, spacing: 21) {
  Breadcrumb(items: ["Teams", "Support", "Members"])
  Card(title: "Support team", subtitle: "Pick the people who answer customer tickets this quarter.") {
    PickList {
      Listbox(label: "Available", options: ["Bernardo Dominic", "Elwin Sharvill", "Ioni Bowcher", "Onyama Limba", "Xuxue Feng"], selection: "Ioni Bowcher")
      TransferControls()
      Listbox(label: "Support", options: ["Amy Elsner", "Anna Fali", "Asiya Javayant", "Stephen Shaw"], selection: -1)
    }
  }
  Card(title: "On-call rotation") {
    OrderList {
      TransferControls(vertical: true)
      Listbox(label: "Week order", options: ["1 · Amy Elsner", "2 · Stephen Shaw", "3 · Anna Fali", "4 · Asiya Javayant"], selection: "2 · Stephen Shaw")
    }
  }
}
.padding(28)

File manager — Menubar with an open TieredMenu

A Menubar with its "File" submenu open and the "Export" level beside it (a TieredMenu placed with .offset), a Breadcrumb, a Splitter holding a Tree and a TreeTable, an open ContextMenu on a row and a Tooltip.

https://app.example.com/files/projects
Projects
Harbor redesign
Q4 campaign
Archive
Shared with me
Trash
NameSizeModified
Design18 MBNov 20
Wireframes.fig6.2 MBNov 20
Moodboard.pdf11 MBNov 18Shared with 4 people
Research4 MBNov 12
Budget.xlsx320 KBNov 02
Files

Order follow-up — Toasts and a ConfirmDialog

The overlay states around an order: two stacked Toasts, a ConfirmDialog before cancelling, a warn Message, a Timeline with icon markers, a ProgressBar, Tags, a Chip, an AvatarGroup, a Badge and a SplitButton.

https://app.example.com/orders/1042
Order #1042Processing
+2
Actions
Shipment
Nov 18, 10:30
Ordered
Nov 18, 14:00
Processing
Nov 19, 16:15
Shipped
Expected Nov 21
Delivered
Packing
75%
FragileGift wrap
Items3
$216.00
Cancel orderNotify customer
Label printedShipping label sent to the warehouse printer.
Customer notifiedAmy Elsner received the delay notice.
Light
https://app.example.com/orders/1042
Order #1042Processing
+2
Actions
Shipment
Nov 18, 10:30
Ordered
Nov 18, 14:00
Processing
Nov 19, 16:15
Shipped
Expected Nov 21
Delivered
Packing
75%
FragileGift wrap
Items3
$216.00
Cancel orderNotify customer
Label printedShipping label sent to the warehouse printer.
Customer notifiedAmy Elsner received the delay notice.
Dark
Order #1042
Source
import PrimeVue

VStack(alignment: .stretch, spacing: 21) {
  HStack(spacing: 10) {
    Text("Order #1042").font(.title2)
    Tag("Processing", severity: "info", icon: "pi pi-sync")
    Spacer()
    AvatarGroup {
      Avatar(image: "assets/images/avatar-1.svg", shape: "circle")
      Avatar(image: "assets/images/avatar-3.svg", shape: "circle")
      Avatar(label: "+2", shape: "circle")
    }
    SplitButton("Actions", icon: "pi pi-cog", severity: "secondary")
  }
  Message("The carrier reported a delay — delivery may slip by one day.", severity: "warn", icon: "pi pi-exclamation-triangle", showIcon: true)
  HStack(alignment: .top, spacing: 21) {
    Card(title: "Shipment") {
      Timeline {
        TimelineEvent("Ordered", time: "Nov 18, 10:30", icon: "pi pi-shopping-cart", color: "purple")
        TimelineEvent("Processing", time: "Nov 18, 14:00", icon: "pi pi-cog", color: "orange")
        TimelineEvent("Shipped", time: "Nov 19, 16:15", icon: "pi pi-truck", color: "green")
        TimelineEvent("Delivered", time: "Expected Nov 21", icon: "pi pi-check", color: "gray")
      }
    }
    Card(title: "Packing") {
      ProgressBar(value: 75)
      HStack(spacing: 7) {
        Chip("Fragile", icon: "pi pi-exclamation-circle")
        Chip("Gift wrap", icon: "pi pi-gift")
      }
      HStack {
        Text("Items")
        Badge(value: 3, severity: "secondary")
        Spacer()
        Text("$216.00").fontWeight(.semibold)
      }
    } footer: {
      Button("Cancel order", severity: "danger", variant: "outlined")
      Button("Notify customer", icon: "pi pi-send")
    }
    .frame(width: 360)
  }
}
.padding(28)

ConfirmDialog(header: "Cancel order", message: "Cancel order #1042 and refund $216.00 to the customer?",
              buttons: ["Keep order", "Cancel order"], destructive: "Cancel order")

Toast(summary: "Label printed", detail: "Shipping label sent to the warehouse printer.", severity: "success", icon: "pi pi-check", position: "bottom-right")
  .offset(y: -84)
Toast(summary: "Customer notified", detail: "Amy Elsner received the delay notice.", icon: "pi pi-info-circle", position: "bottom-right")

Each Toast is its own overlay; the first is lifted with .offset(y:) so the two stack like PrimeVue's toast container.

Product page on a phone

Galleria with thumbnails, Rating, SelectButton, InputNumber, Accordion, a Carousel with indicators, Skeletons for a loading card and a ScrollTop.

New
(128)
Harbor Linen Shirt$58.00
SizeSMLXL
1
Add to cart
Details
Breathable washed linen, relaxed fit, mother-of-pearl buttons.
Shipping & returns
You may also like
Dune Chinos
$64.00
Light
New
(128)
Harbor Linen Shirt$58.00
SizeSMLXL
1
Add to cart
Details
Breathable washed linen, relaxed fit, mother-of-pearl buttons.
Shipping & returns
You may also like
Dune Chinos
$64.00
Dark
Product