UNPKG

@kubit-ui-web/react-components

Version:

Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience

16 lines (15 loc) 473 B
import { STATES } from '../../types/states/states'; export type States = (keyof typeof STATES)[]; type ParamsType = { states: States; ref?: React.ForwardedRef<HTMLElement> | undefined | null; disabled?: boolean; loading?: boolean; active?: boolean; }; type ReturnType = { state: STATES; setRef?: (node: HTMLElement) => void; }; export declare const useManageState: ({ disabled, loading, active, ...props }: ParamsType) => ReturnType; export {};