react-icons/hi#HiOutlineInformationCircle TypeScript Examples
The following examples show how to use
react-icons/hi#HiOutlineInformationCircle.
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: InfoPopover.tsx From pagely with MIT License | 6 votes |
InfoPopover: React.FC<{ content: string }> = ({ content, ...props }) => {
return (
<span className='relative mx-2 transition-all top-1'>
<Popover.Root>
<span>
<Popover.Trigger asChild>
<HiOutlineInformationCircle className='w-5 h-5 p-px rounded cursor-pointer hover:bg-gray-100' />
</Popover.Trigger>
<Popover.Content sideOffset={10} side='top'>
<div className='w-64 px-2 py-1 text-sm bg-black rounded-md shadow-lg text-gray-50'>
{content}
<div className='mt-3'>{props.children}</div>
</div>
</Popover.Content>
</span>
</Popover.Root>
</span>
);
}