@fortawesome/free-brands-svg-icons#faWhatsapp TypeScript Examples
The following examples show how to use
@fortawesome/free-brands-svg-icons#faWhatsapp.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SocialMediaButtons.tsx From frontend.ro with MIT License | 6 votes |
export function WhatsAppButton({ url }: { url: string }) {
const share = useSocialShare('WhatsApp');
return (
<a
target="_blank"
rel="noreferrer"
onClick={share}
href={`https://wa.me/?text=${encodeURI(url)}`}
className="btn btn--light no-underline btn--with-icon"
>
<FontAwesomeIcon icon={faWhatsapp} height="24" className="mr-2" />
Send via WhatsApp
</a>
);
}