The standard components ship in the StandardComponents static resource. Its index.js registers the core custom elements listed below alongside the data driven components described later in this article. Both the builder canvas and the runtime portal load this script, so the same components render at design time and run time.
| Custom element | Purpose |
|---|---|
x-chart-builder |
Data driven chart |
x-flow-component |
Embedded Salesforce screen flow |
x-iframe-component |
Embedded external URL |
x-custom-lwc-component |
Dynamically host a native org LWC |
x-login-component |
Login and registration modal |
A sixth builder block, Sub Template, maps to a plain div and ships no component. See Web portals and pages.
Each element is exposed through its LWC CustomElementConstructor, so it works as a plain web component with no LWC host. Builder blocks map kebab case trait names to the camelCase @api props (for example flow-name to flowName).
Renders a configurable data chart. Builder block category Interactions.
Key attributes:
| Attribute | Notes |
|---|---|
type |
line, bar, horizontalBar, doughnut, pie, polarArea, radar, bubble, scatter |
title |
Chart title |
theme-type |
Theme (light or dark; legacy theme names fall back to light) |
legend-position |
Legend placement |
color-palette |
One of seven named palettes (default, colorsafe, light, bluegrass, sunrise, water, watermelon) |
fill |
Fill area under lines |
source-type |
Explicit source selection: auto, dataset, soql or custom |
details |
Direct Dataset JSON |
details-labels |
Dataset display names as a JSON array |
record-id |
Context record id, defaults to {{contactUser.Id}} |
soql |
A SOQL query with a label and value alias, :recordId supported |
handler |
An Apex class name for a custom data provider |
preview-mode |
Builder-only live, sample, automatic or disabled preview |
refresh-interval |
Live data refresh interval in seconds |
Data sources. Setting soql uses the built in b3p.SOQLDataProvider, with :recordId supplied as a validated server-side bind. Setting handler uses a custom Apex class. Both route through b3p.ChartBuilderController action getChartData, which validates and invokes the provider. A custom provider extends ChartDataProvider and returns a list of ChartData. See Build and manage portal charts for previews, direct Dataset JSON, Dataset Labels, SOQL rules, formatting, refresh and a complete custom Apex provider example.
Embeds a Salesforce screen flow through Lightning Out. Attributes: flow-name (the flow API name) and component-params (a key value list serialised to JSON, passed as flow inputs). All inputs are passed as String. See Embedded screen flows for the full mechanism and guest support.
Embeds an external URL. Attributes: url, width (default 100%), height (default 300px). In the builder it shows a browser frame placeholder; at runtime it renders a real iframe.
Dynamically hosts a native, org side Lightning Web Component inside the portal through Lightning Out. Attributes: component-name (format namespace:componentName, for example b3p:helloWorld) and component-params (a key value list serialised to JSON).
It runs through the b3p:lightningOutLWC Lightning Out app, which allows guest access. This lets you surface an exposed org LWC on a portal page without adding it to the package. In the builder it shows a cannot be previewed card.
Admin note. Guests can run any LWC a page hosts this way. Only host components that are safe for any visitor to run, and check what data each one reads and writes.
The login and registration modal. Not a draggable block; injected by the runtime on demand. See Login and registration.
There is no single Form component. Forms are assembled from the shared field building block pc-field-text. pc-field-text supports label, required, disabled, read only, help text, placeholder, min and max length, size, and theme, emits a change event with the value, and exposes checkValidity and reportValidity for container level validation. A form validates each field, then submits to an Apex controller through the router. The login and registration component is the canonical worked example.
Version 11 adds fourteen more blocks: Record Data Table, Related Record List, Record Repeater, Dynamic Form / Record Detail, Record Path, Kanban Board, Activity & Task Manager, Calendar, KPI Card, Progress Gauge, Notifications Centre, Knowledge / Help Centre, Conditional Content and Dashboard. They share a configuration model (a versioned component_config.json file on the page, schema driven modals, live previews) and a server side query engine. See Standard components: configuration model and security and the per component articles linked from it. Charts gained a chart designer.
Version 12.0.0 adds Report List, bringing the suite to fifteen blocks. It opens tabular, summary and matrix reports with date ranges, grouping, totals and CSV export.
When a portal has offline support enabled, the data driven standard components take part automatically. They all call Apex through a shared helper, so their reads are cached and refreshed by the offline worker according to the portal's caching strategy, and their write actions (record saves and deletes, activity updates, notification read and dismiss) are queued on the device when the network is down and replayed when it returns. File uploads are not queued. The Report List catalogue can be cached, but report rows are excluded from the device cache and opening a report requires a connection.
Nothing needs configuring on the component itself. Enable it on the Web_Portal__c record. See Offline support and caching, and Component caching and offline API for the helper options, the background refresh callback and the events a component can listen for.
Portal.page loads the StandardComponents resource. The components read runtime context from window.globals.window.globals, so components render live inside the editor. The block palette and properties panel come from the managed blocks plus your Portal_Block__mdt records. See Custom components.Every registered block also supports conditional display.