I am trying to align the button content and the icon in the same line
<button key={index}
className="focus:outline-none font-sans bg-white border border-gray-300 hover:bg-gray-100 text-left text-gray-700 px-2 py-2 rounded"
onClick = {(e) =>
{
e.preventDefault();
window.open(element.url,"_blank")
} }
>
<span className="px-1">{element.title}</span>
<Icon className="text-gray-700 float-right" name={topic.icon } />
</button>
Please check the rendering

