I'm attempting to customize a label in lightning-accordion. Next to the label I'm trying to place a count that populates from wrapper.
<lightning-accordionSection key={account.id} name={account.name} label={account.name -recordCount}> CONTENT </lightning:accordionSection>
But the label is incorrect. What is a better way to show?
One solution would be to concat the name and record count as a string and pass it from apex to ui. But I was hoping if there is a simpler way to customize the label on the accordion.