Skip to main content

Cookbook

The Cookbook contains complete, production-ready page templates built with Primus UI components. Each recipe is a full page — not a component demo — designed to be copied directly into an enterprise application.

Every recipe is available in three formats: plain HTML (using @primus/ui-core), React, and Angular. All three produce the same visual output.

How to use a recipe​

  1. Pick the recipe that matches your use case
  2. Copy the code for your framework (HTML, React, or Angular)
  3. Paste it into your project and replace placeholder data with your real data
  4. The styling is already handled — @primus/ui-core CSS does all the work

Available recipes​

Authentication​

RecipeDescription
Login PageEmail/password login with Azure AD and SSO buttons
Register PageNew account registration with validation
Forgot PasswordPassword reset request flow

Dashboards​

RecipeDescription
Admin DashboardSystem-wide metrics, activity feed, and quick actions
Tenant DashboardPer-tenant usage, billing, and user management
Analytics DashboardCharts, KPIs, and data export panel

Data Management​

RecipeDescription
Data List PageSearchable, sortable, paginated data table with filters
Create / Edit FormMulti-field form with validation, loading, and error states
Detail PageRecord detail view with related data and action panel

Settings​

RecipeDescription
Settings PageTabbed settings with profile, security, and notifications
Billing PageSubscription management, invoice history, payment method

Onboarding​

RecipeDescription
Onboarding WizardMulti-step tenant setup with progress indicator

Design principles​

All recipes follow these enterprise UI conventions:

  • No decorative icons or emojis in the UI chrome — only in data content where appropriate
  • Consistent grid — 12-column .row/.col-* layout with standard breakpoints
  • 8px spacing scale — all gaps and paddings use multiples of 8px
  • State-first — every interactive element shows loading, disabled, and error states
  • Accessible — semantic HTML, aria-* attributes, keyboard navigation throughout