Constellation Studio docsOpen the studio

Your own components

On this page

Build components the studio does not have, keep them in your library, and use them like built-in ones: on the canvas, in previews, exported apps, Run in Pega and components published into Pega.

Make one

Components panel → Library tab → New component. Three ways to start:

A component is a template: HTML or SVG with {{key}} placeholders, plus settings that designers change in Properties:

Setting type What designers set
Text, Number, Yes/No, Choice The value
Colour A theme colour (follows the theme, light and dark)
Pega property A property path; the placed component shows that property's value from the case

The preview shows it in the design's theme as you type.

React components

Choose React code in the dialog for a component that reacts to clicks, typing or time (a counter, a calculator, a step-by-step helper). Write one TSX file:

import * as React from 'react';
import type { StudioComponentProps } from './studio-component';

export default function Component({ settings, value, set }: StudioComponentProps) {
  // settings: what designers set; value / set: the first "Pega property" setting; theme: the design's colours
  …
}

The checks

The studio checks every component, and the checks decide whether it can be used in Pega (the badge Pega + apps, or Needs changes):

AI review explains the results in plain language and how to fix them. The AI explains; the checks decide. Fix with AI (shown when a check fails) sends the failed checks to the AI and asks it to fix only those, the way Pega's component kit works (build, check, fix). The component is replaced and the checks run again: review them, then save. A secret check also fails components that contain keys, tokens or passwords. Uses your AI key.

Approval and who may do what

Owner Publisher Developer Viewer
Make, import or AI-build a component; use own drafts ✓ ✓ ✓
Submit a draft for the team (checks must pass) ✓ ✓ ✓
Approve, or ask for changes with a note ✓
Use approved components ✓ ✓ ✓ view
Publish designs with your own components to Pega ✓ ✓

In Pega

A component published inside a FORM template is drawn by the same safe renderer. Each Pega property setting becomes a template setting in App Studio ("@P .Property", bound like a field), so the component shows the case's value.

Limits