UNPKG

mistui-kit

Version:

**👉 [Try MistUi Live](https://gilded-tanuki-0eb52b.netlify.app/) — interactive playground & docs**

15 lines (14 loc) • 1 kB
import { SetStateAction, Dispatch } from 'react'; export { default as useBreakpoints } from './useBreackpoints'; export declare function useClientValidity<T extends HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>(func: (value: string | number | boolean) => { valid: boolean; helper: React.ReactNode; }, ref: React.RefObject<T>): { isValid: boolean; text: import("react").ReactNode; }; export declare function useCache<T>(value: T): [T, Dispatch<SetStateAction<T>>]; export declare function useConditionalRef<T extends HTMLElement>(uid?: string): import("react").RefObject<T>; export declare function useClickOutside(selectorsIgnore: string[], onClickOutside: () => void): void; export declare function useHover<T extends HTMLElement>(): readonly [(node: T | null) => void, boolean, Dispatch<SetStateAction<boolean>>]; export declare function createGradientStyle(baseColor: string, direction?: 'to right' | 'to left' | 'to top' | 'to bottom' | string): React.CSSProperties;