@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
32 lines (31 loc) • 2.11 kB
TypeScript
import { ComponentStyle, ThemeProps, WithoutThemeProps } from "../../core/system/index.types.js";
import { CSSModifierObject, CSSObject, CSSPropObject } from "../../core/css/index.types.js";
import { As, Component, HTMLStyledProps } from "../../core/components/index.types.js";
import { ComponentOptions, ComponentWithContextOptions, InitialProps, SuperProps, SuperWithoutThemeProps } from "../../core/components/create-component.js";
import "../../core/index.js";
import { IconStyle } from "./icon.style.js";
import "../../index.js";
import * as react834 from "react";
import * as _yamada_ui_utils9 from "@yamada-ui/utils";
//#region src/components/icon/icon.d.ts
interface IconProps extends HTMLStyledProps<"svg">, ThemeProps<IconStyle> {}
declare const component: <D extends "fragment" | As = "div", H extends _yamada_ui_utils9.Dict = IconProps>(el: D | react834.FC<H>, {
name,
className,
...options
}?: ComponentOptions) => (...superProps: SuperProps<H>[]) => D extends "fragment" ? react834.FunctionComponent<H> : Component<Exclude<D, "fragment">, H>, IconPropsContext: react834.Context<Partial<IconProps> | undefined>, useIconPropsContext: () => Partial<IconProps> | undefined, withContext: <D extends "fragment" | As = "div", H extends IconProps = IconProps, R extends keyof H = keyof H>(el: D | react834.FC<WithoutThemeProps<H, ComponentStyle<CSSPropObject<CSSObject>, CSSModifierObject, CSSModifierObject>, R>>, {
name,
className,
withContext,
transferProps,
...options
}?: ComponentWithContextOptions<R>) => (initialProps?: InitialProps<H>, ...superProps: SuperWithoutThemeProps<H, ComponentStyle<CSSPropObject<CSSObject>, CSSModifierObject, CSSModifierObject>, R>[]) => D extends "fragment" ? react834.FunctionComponent<H> : Component<Exclude<D, "fragment">, H>;
/**
* `Icon` is a general icon component that can be used in your projects.
*
* @see https://yamada-ui.com/docs/components/icon
*/
declare const Icon: Component<"svg", IconProps>;
//#endregion
export { Icon, IconProps, IconPropsContext, useIconPropsContext };
//# sourceMappingURL=icon.d.ts.map