UNPKG

@crossed/primitive

Version:

A universal & performant styling library for React Native, Next.js & React

19 lines 1.1 kB
/** * Copyright (c) Paymium. * * This source code is licensed under the MIT license found in the * LICENSE file in the root of this projects source tree. */ import type { ComponentType } from 'react'; export { useInputContext } from './context'; export declare const createInput: <GroupProps extends Record<string, any>, IconProps extends Record<string, any>, ElementProps extends Record<string, any>, InputProps extends Record<string, any>>(components: { Group: ComponentType<GroupProps>; Addon: ComponentType<IconProps>; Element: ComponentType<ElementProps>; Input: ComponentType<InputProps>; }) => import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<InputProps> & import("react").RefAttributes<any>> & { Group: import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<GroupProps> & import("react").RefAttributes<any>>; Addon: ComponentType<IconProps>; Element: import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<ElementProps> & import("react").RefAttributes<any>>; }; //# sourceMappingURL=index.d.ts.map