Is there a way to align an icon to the left side of a link while keeping the text centered at the same time?
<div className="max-w-screen-2xl mx-auto sm:px-6 lg:px-8">
<Link
href="#"
className="px-6 py-3 mt-2 flex justify-center text-center"
>
<DocumentTextIcon
className="ml-1 mt-1 -mr-1 h-10 w-10"
aria-hidden="true"
/>
<p>
Some random text </p>
</Link>
</div>
The current code centers both the icon and the text, but adjusting with margin might not be dynamic. Any suggestions on how to keep the icon aligned to the left and maintain dynamic functionality?