@assistant-ui/react
Version:
React components for AI chat.
6 lines • 647 B
TypeScript
import { ComponentPropsWithoutRef, ElementRef, ElementType } from "react";
export declare const withDefaultProps: <TProps extends {
className?: string;
}>({ className, ...defaultProps }: Partial<TProps>) => ({ className: classNameProp, ...props }: TProps) => TProps;
export declare const withDefaults: <TComponent extends ElementType>(Component: TComponent, defaultProps: Partial<ComponentPropsWithoutRef<TComponent>>) => import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<Partial<ComponentPropsWithoutRef<TComponent>>> & import("react").RefAttributes<ElementRef<TComponent>>>;
//# sourceMappingURL=withDefaults.d.ts.map