Appearance
Rule.io SDK / rcml/src / createBrandStyleElement
Function: createBrandStyleElement()
createBrandStyleElement(
options):RcmlBrandStyle
Defined in: rcml/src/email/create-rcml-element.ts:979
Build an <rc-brand-style> declaration — references a saved brand style by numeric id. The referenced style supplies default colors, fonts, and logo to the renderer. Intended for editor internal use; the actual attribute inheritance happens through <rc-attributes>.
Parameters
options
options.attrs.id is the numeric brand-style id (as a positive-number string).
Returns
A typed RcmlBrandStyle node.
Throws
When attrs.id is missing or invalid.
Example
ts
createBrandStyleElement({ attrs: { id: '99999' } })