@crossed/primitive
Version:
A universal & performant styling library for React Native, Next.js & React
25 lines • 720 B
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 { MutableRefObject } from 'react';
export type States = {
isActive: boolean;
isFocus: boolean;
isHover: boolean;
};
export type StyleRef = {
style?: any;
className?: any;
};
export type ContextInput = {
states: States;
setStates: (_style: Partial<States>) => void;
inputRef: MutableRefObject<any>;
};
export declare const InputProvider: (props: ContextInput & {
children: React.ReactNode;
}) => import("react/jsx-runtime").JSX.Element, useInputContext: () => ContextInput;
//# sourceMappingURL=context.d.ts.map