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.
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.
| Code | Name | Price | Category | Reviews | Status | ||
|---|---|---|---|---|---|---|---|
Search by code | Search by name | Min price | Any category | Any status | |||
| f230fh0g3 | Bamboo Watch | $65.00 | Accessories | INSTOCK | |||
| nvklal433 | Black Watch | $72.00 | Accessories | INSTOCK | |||
| zz21cz3c1 | Blue Band | $79.00 | Fitness | LOWSTOCK | |||
| 244wgerg2 | Blue T-Shirt | $29.00 | Clothing | INSTOCK | |||
| h456wer53 | Bracelet | $15.00 | Accessories | INSTOCK | |||
| av2231fwg | Brown Purse | $120.00 | Accessories | OUTOFSTOCK |
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.
| Product | Price | Status | |
|---|---|---|---|
| Bamboo Watch | $65.00 | Delivered | |
| Black Watch | $72.00 | Pending | |
| Blue Band | $79.00 | Delivered | |
| Brown Purse | $120.00 | Cancelled |
| Product | Price | Status | |
|---|---|---|---|
| Bamboo Watch | $65.00 | Delivered | |
| Black Watch | $72.00 | Pending | |
| Blue Band | $79.00 | Delivered | |
| Brown Purse | $120.00 | Cancelled |
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.
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.
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.
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.
| Name | Size | Modified | |
|---|---|---|---|
| Design | 18 MB | Nov 20 | |
| Wireframes.fig | 6.2 MB | Nov 20 | |
| Moodboard.pdf | 11 MB | Nov 18 | Shared with 4 people |
| Research | 4 MB | Nov 12 | |
| Budget.xlsx | 320 KB | Nov 02 |
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.
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.