Newer Version Available
Code Examples for Document Builder
Build custom components for Document Builder with Lightning web components
(LWCs).
With custom components, the sky’s the limit, but these code samples can get you started on your own Document Builder customization journey.
Static Text
The header and medium header base components come with color and padding configuration. This code creates a medium header component.
Static Images
Here’s some sample code to create custom static images. This code creates a Static Image component.
This code uses SFDX to deploy contentAssets.