package.dist.utils.use-controllable-state.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of react Show documentation
Show all versions of react Show documentation
A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.
The newest version!
export interface UseControllableStateProps {
value?: T;
defaultValue?: T;
onChange?: (value: T) => void;
}
export declare function useControllableState(props: UseControllableStateProps): readonly [T, (value: T) => void | undefined];
© 2015 - 2025 Weber Informatics LLC | Privacy Policy