react-icons#IconType TypeScript Examples

The following examples show how to use react-icons#IconType. 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: RoundedExternalLink.tsx    From po8klasie with GNU General Public License v3.0 6 votes vote down vote up
RoundedExternalLink = forwardRef<
  HTMLAnchorElement,
  { icon: IconType } & HTMLProps<HTMLAnchorElement>
>(({ href, className, icon: Icon, children }, ref) => (
  <a
    href={href}
    ref={ref}
    target="_blank"
    rel="noreferrer noopener"
    className={[className ?? '', roundedLinkClassName].join(' ')}
  >
    <span className="text-lg" style={{ transform: 'translateY(-1px)' }}>
      <Icon />
    </span>
    <span className="ml-4 font-bold">{children}</span>
  </a>
))
Example #2
Source File: NotificationsTable.tsx    From bluebubbles-server with Apache License 2.0 5 votes vote down vote up
AlertTypeIcon: NodeJS.Dict<IconType> = {
    warn: AiOutlineWarning,
    info: AiOutlineInfoCircle,
    error: BiErrorAlt
}
Example #3
Source File: list-item.tsx    From website with Apache License 2.0 5 votes vote down vote up
export function ListItem({text, icon}: {text: ReactNode; icon: IconType}) {
	return (
		<li className="flex space-x-2">
			<span>{icon({className: 'h-6 w-6'})}</span>
			<span>{text}</span>
		</li>
	);
}
Example #4
Source File: AppFooter.tsx    From po8klasie with GNU General Public License v3.0 5 votes vote down vote up
socialLinks: [string, IconType][] = [
  ['https://fb.com/po8klasie', FaFacebookF],
  ['https://twitter.com/po8klasie', FaTwitter],
  ['https://github.com/po8klasie', FaGithub],
  ['https://linkedin.com/company/po8klasie', FaLinkedinIn],
]
Example #5
Source File: Footer.tsx    From po8klasie with GNU General Public License v3.0 5 votes vote down vote up
socialLinks: [string, IconType][] = [
  ['https://fb.com/po8klasie', FaFacebookF],
  ['https://twitter.com/po8klasie', FaTwitter],
  ['https://github.com/po8klasie', FaGithub],
  ['https://linkedin.com/company/po8klasie', FaLinkedinIn],
]
Example #6
Source File: TeamSection.tsx    From po8klasie with GNU General Public License v3.0 5 votes vote down vote up
iconMapping: Record<string, IconType> = {
  linkedin: FaLinkedinIn,
  github: FaGithub,
  website: FaGlobe,
}