UNPKG

next-social-icons

Version:

A Next.js-compatible social icons library based on `react-social-icons`.

16 lines (15 loc) 499 B
import { AnchorHTMLAttributes, FC } from "react"; import { icons } from "../../lib/icons"; export type Icons = typeof icons; export type SelectedIcon = Icons[keyof Icons]; export type SelectIconProps = { icon: SelectedIcon; }; export interface SocialIconProps extends AnchorHTMLAttributes<HTMLAnchorElement> { platform: keyof typeof icons; size?: string | number; fgColor?: string; bgColor?: string; inverse?: boolean; } export declare const SocialIcon: FC<SocialIconProps>;