function createBadgeWithIcon createBadgeWithIcon(text: string,icon: string,props?: BadgeProps): HTMLSpanElement Create a badge with an icon Examples Example 1 const badge = createBadgeWithIcon('Live', '<i class="ph ph-circle-fill"></i>', { variant: 'success' }); Parameters text: string Badge content icon: string Icon HTML string optional props: BadgeProps Badge configuration Return Type HTMLSpanElement HTMLSpanElement