UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

31 lines (30 loc) 1.76 kB
import { ComponentStyle, ThemeProps, WithoutThemeProps } from "../../core/system/index.types.js"; import { CSSModifierObject, CSSObject, CSSPropObject, CSSProps } from "../../core/css/index.types.js"; import { As, Component } from "../../core/components/index.types.js"; import { ComponentWithContextOptions, InitialProps, SuperWithoutThemeProps } from "../../core/components/create-component.js"; import "../../core/index.js"; import { IconProps } from "../icon/icon.js"; import { LoadingStyle } from "./loading.style.js"; import "../../index.js"; import * as react819 from "react"; //#region src/components/loading/loading.d.ts interface LoadingProps extends WithoutThemeProps<IconProps>, ThemeProps<LoadingStyle> { /** * The CSS `dur` property. */ duration?: IconProps["dur"]; /** * The CSS `color` property. */ secondaryColor?: CSSProps["color"]; } declare const LoadingPropsContext: react819.Context<Partial<LoadingProps> | undefined>, useLoadingPropsContext: () => Partial<LoadingProps> | undefined, withContext: <D extends "fragment" | As = "div", H extends LoadingProps = LoadingProps, R extends keyof H = keyof H>(el: D | react819.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" ? react819.FunctionComponent<H> : Component<Exclude<D, "fragment">, H>; //#endregion export { LoadingProps, LoadingPropsContext, useLoadingPropsContext }; //# sourceMappingURL=loading.d.ts.map