Initial commit
This commit is contained in:
10
node_modules/@radix-ui/react-use-controllable-state/dist/index.d.mts
generated
vendored
Normal file
10
node_modules/@radix-ui/react-use-controllable-state/dist/index.d.mts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import * as React from 'react';
|
||||
|
||||
type UseControllableStateParams<T> = {
|
||||
prop?: T | undefined;
|
||||
defaultProp?: T | undefined;
|
||||
onChange?: (state: T) => void;
|
||||
};
|
||||
declare function useControllableState<T>({ prop, defaultProp, onChange, }: UseControllableStateParams<T>): readonly [T | undefined, React.Dispatch<React.SetStateAction<T | undefined>>];
|
||||
|
||||
export { useControllableState };
|
||||
Reference in New Issue
Block a user