<template for:each={lstAccounts} for:item="acc"> <p key={acc.Id} style="display:inline"> <lightning-badge label={acc.Name}></lightning-badge> </p> </template>