@crossed/primitive
Version:
A universal & performant styling library for React Native, Next.js & React
20 lines • 1.01 kB
TypeScript
/**
* 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 { useContext as useLabelContext } from './context';
export declare const createLabel: <LabelProps extends Record<string, any>, TextProps extends Record<string, any>>(components: {
Root: ComponentType<LabelProps>;
Text: ComponentType<TextProps>;
}) => import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<LabelProps> & import("react").RefAttributes<any>> & {
readonly Text: import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<Omit<TextProps, "children"> & {
children: string | string[];
}> & import("react").RefAttributes<any>>;
readonly Input: import("react").ForwardRefExoticComponent<{
children?: import("react").ReactNode | undefined;
} & import("react").RefAttributes<any>>;
};
//# sourceMappingURL=index.d.ts.map