0
I’m trying to make a button in React, but unfortunately I can’t put Icon behind the phrase
import React from 'react';
export function BotaoMenu(){
return(
<>
<div className="row-flex-auto ">
<div className="p-0 mt-0 mb-3">
<a type="button" className="bg-blue-700 hover:bg-blue-800 text-white font-bold py-2 px-4 rounded-full px-12 " href="/">
<div className="">
<IconPardao/>
</div>
<h4 className="ml-4"> Menu Teste</h4>
</a>
</div>
</div>
</>
);
}
export function IconPardao(){
return(
<>
<div >
<img className="h-4 w-4" src={teste} />
</div>
</>
);
}
export default BotaoPadrao;
I liked the idea, but is there something in line? because I’m wearing the tailwind and I don’t even know how to import something to React. I apologize for my lack of practice.
– OSCAR ANTONIO COSTA
Just apply the same idea as inline CSS...
– Jéf Bueno
Thanks for the help, I will review more about the tailwind patterns as I am very confused on how to use it.
– OSCAR ANTONIO COSTA