@ebay/ui-core-react
Version:
Skin components build off React
22 lines • 899 B
TypeScript
import React, { Ref, SVGProps } from "react";
import { Icon } from "./types";
import type { Icon as FlagIcon } from "../ebay-flag";
export type A11yVariant = "label";
export type EbayIconProps = SVGProps<SVGSVGElement> & {
className?: string;
name: Icon | FlagIcon;
noSkinClasses?: boolean;
a11yText?: string;
a11yVariant?: A11yVariant;
forwardedRef?: Ref<SVGSVGElement>;
/**
* These properties are used by EbayImagePlaceholder and for flags.
* NOTE: The flag "@deprecated" is only to not show this property in the autocomplete list on the top
* @deprecated
*/
__type?: "icon" | "flag" | "none";
};
export declare function kebabCased(str: string): string;
declare const _default: React.ForwardRefExoticComponent<Omit<EbayIconProps, "ref"> & React.RefAttributes<React.FC<EbayIconProps>>>;
export default _default;
//# sourceMappingURL=icon.d.ts.map