Using Components in Canvas Apps
Using Components in Canvas Apps
Section titled “Using Components in Canvas Apps”After you’ve imported the PCK solution, you can add and configure components in any Canvas app.
Insert a PCK component
Section titled “Insert a PCK component”- Open your app in Power Apps Studio.
- Select Insert (the + icon) in the left pane.
- Scroll to Custom or select Get more components.
- Find the PCK component (e.g. PCK.MaskedInput, PCK.StarRating, PCK.ProgressIndicator or a chart) and select it. The component is added to the current screen.
Bind inputs and read output
Section titled “Bind inputs and read output”- Inputs — Select the component on the canvas. In the Properties pane, set each input (e.g. Mask, Value, TotalStars). You can bind to a data source: e.g. set Value to
ThisItem.Phonefor a gallery row. - Output — Use the component’s name and output property in formulas. For example:
- Masked Input:
MaskedInput1.Valuereturns the current text (often unmasked digits for storage). - Star Rating:
StarRating1.Valuereturns the selected rating number. - Progress Indicator:
ProgressIndicator1.Value(or the output you configured) for the current progress.
- Masked Input:
Example: save the masked input into a record:
Patch(Contacts, ThisItem, { Phone: MaskedInput1.Value })Save and publish
Section titled “Save and publish”- Save — File → Save to save your work.
- Publish — File → Publish → Publish to production (or your target) so users see the latest version.
- Containers — Place components inside Horizontal or Vertical containers and use Fill or Fit so layout stays consistent on different screen sizes.
- Theme — PCK components align with your app’s theme (colors and fonts). Changing the app theme updates the components without extra configuration.
- Multiple instances — You can add the same component multiple times (e.g. different masks). Each instance has its own name (e.g.
MaskedInput1,MaskedInput2); use that name in formulas to read or write its value.
For property details and examples per component, see the Components section.