Skip to content

Instantly share code, notes, and snippets.

View Giuseppetm's full-sized avatar
👨‍🚀

Giuseppe Del Campo Giuseppetm

👨‍🚀
View GitHub Profile
@Giuseppetm
Giuseppetm / ExtendedToolTip.tsx
Created September 4, 2021 08:25
A ToolTip for Fluent UI framework with extended content
{(() => {
const imageUrl = `https://studentiunimi-groups-propics.marcoaceti.workers.dev/${x.user_id}.png`;
const tooltipProps: ITooltipProps = {
onRenderContent: () => (
<div>
<div className="mb-1">
<Text variant="large" styles={semibold}><Link href={`https://t.me/${x.username}`}>@{x.username}</Link></Text><br />
<Text variant="medium" styles={semibold}>{x.delega}</Text><br />
</div>
<div>