UNPKG

@eccenca/gui-elements

Version:

GUI elements based on other libraries, usable in React application, written in Typescript.

22 lines (21 loc) 807 B
import React from "react"; import { BaseIconProps } from "./BaseIcon"; import { CarbonIconType } from "./canonicalIconNames"; export interface TestIconProps extends Omit<BaseIconProps, "iconComponent"> { /** * Carbon icon that is used instead of the via `name` defined canonical named icon. */ tryout: CarbonIconType; } /** * This component is primarily provided to test icons in a third application without defining them via a canonical name before. * * Example usage: * ``` * import { LogoReact } from "@carbon/icons-react"; * import { TestIcon } from "@eccenca/gui-elements"; * const testIcon = <TestIcon tryout={LogoReact} />; * ``` */ export declare const TestIcon: ({ className, tryout, ...otherBaseIconProps }: TestIconProps) => React.JSX.Element; export default TestIcon;