Skip to content
All 183 components, $149 onceSee plans

YAML Code Export

Every component card generates Power Apps YAML from your current settings. The copy and paste steps are on Getting Started; this page explains what you are copying. For a short introduction to the format with a copyable example, see Power Apps YAML.

Tip:
You need to be signed in to copy any YAML; for signed-out visitors, Copy YAML opens the sign-in window and goes on with the copy after sign-in. A free account can copy the 14 free components. The paid components need a paid plan, and full apps need a paid plan other than the old Components subscription. Legacy accounts keep everything they had. Dark theme YAML on paid components also needs a paid plan. See pricing for what each plan includes.

What is YAML?

YAML is a human-readable text format. Power Apps Studio uses it to describe screens, controls and their properties, and pasting that text into Studio (Ctrl+V, or Paste in the Tree view) turns it into real controls. PowerLibs writes Power Apps' own flavour of it, not generic YAML.

What the code looks like

This is the start of the code the Primary Button generates with its default settings (Classic Controls). Every control starts with its name and a Control: line, and every formula value starts with =:

- btnPrimary:
    Control: Classic/Button@2.2.0
    Properties:
      BorderColor: =RGBA(0, 0, 0, 0)
      BorderStyle: =BorderStyle.None
      BorderThickness: =0
      Color: =RGBA(255, 255, 255, 1)
      DisabledBorderColor: =RGBA(0, 0, 0, 0)
      DisabledColor: =RGBA(255, 255, 255, 1)
      DisabledFill: =ColorFade(RGBA(59, 130, 246, 1), 40%)
      Fill: =RGBA(59, 130, 246, 1)
      FocusedBorderThickness: =0
      Font: =Font.'Open Sans'
      FontWeight: =FontWeight.Semibold
      Height: =40

The control names use your prefixes (btn, lbl, con and so on), which accounts with a paid plan other than the old Components subscription can change under Variable Prefix. The colours come from the brand colour and the light or dark theme you picked on the card, and the Font line follows your Font setting (Open Sans unless you change it).

Classic and Modern controls

Power Apps has two control sets. Classic controls are the original ones with the most properties. Modern controls are the newer Fluent controls with a cleaner look and fewer properties. Components that support both have a small arrow next to the Copy YAML button, which opens the choice between Modern Controls and Classic Controls; components without the arrow come in one version only. Copy YAML copies the version you chose last, Classic at first, and your choice is kept for the other components.

Where the code is generated

The YAML is not displayed on the card or on the component's page. When you click Copy YAML, the code is generated on the server from your current settings and lands in your clipboard. That is also how the plan check above is enforced.

YAML Code Export | PowerLibs