UNPKG

@trigger.dev/companyicons

Version:

Easily render company icons in your React app.

17 lines (16 loc) 882 B
/// <reference types="react" /> import { IconVariant, SVGProps } from "../types"; type IconProps = SVGProps & { /** The name of the icon to render. */ name: string; /** Will return a light or dark icon, if there is a variant. Otherwise it will return the regular one. */ variant?: IconVariant; }; /** Tells you if an icon existings for the name. If you want variants it will tell you if they exist */ export declare function hasIcon(name: string, wantVariants?: boolean): boolean; /** Renders the specified icon * @param {string} name - The name of the icon to render. * @param {IconVariant} variant - Will return a light or dark icon, if there is a variant. Otherwise it will return the regular one. */ export declare const CompanyIcon: import("react").ForwardRefExoticComponent<Omit<IconProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>; export {};