npx skills add ...
npx skills add umbraco/umbraco-cms-backoffice-skills --skill umbraco-ufm-component
Implement UFM (Umbraco Flavored Markdown) components in Umbraco backoffice using official docs
npx skills add umbraco/umbraco-cms-backoffice-skills --skill umbraco-ufm-component
UFM (Umbraco Flavored Markdown) Components extend Umbraco's markdown rendering with custom syntax. They allow you to create custom markers that transform into HTML when rendered. This is useful for creating dynamic content like localized strings, property values, or custom UI elements within markdown text. UFM components use special syntax markers (like # for localization or = for values) that get processed into HTML.
Always fetch the latest docs before implementing:
The Umbraco source includes a working example:
Location: /Umbraco-CMS/src/Umbraco.Web.UI.Client/examples/ufm-custom-component/
This example demonstrates a custom UFM component with marker syntax. Study this for production patterns.
Localization: When creating localized UFM components
umbraco-localizationContext API: When accessing data for UFM rendering
umbraco-context-apiImportant: UFM's post-processing sanitizer only allows custom element tag names that start with
umb-,ufm-, oruui-. Any other prefix (e.g.my-hidden-label) will be stripped from the rendered output. See the UFM sanitization docs.
{#key} or {umbLocalize:key} - Localization{=property} or {umbValue:property} - Property values{umbContentName:id} - Content names{umbLink:url} - Styled linksUFM components are used in label descriptions and markdown text:
umb-,
ufm-, or uui-. Other prefixes are removed by UFM's sanitizer.That's it! Always fetch fresh docs, keep examples minimal, generate complete working code.