UNPKG

@ark-ui/react

Version:

A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.

7 lines (6 loc) 292 B
export interface UseControllableStateProps<T> { value?: T | undefined; defaultValue?: T | undefined; onChange?: ((value: T) => void) | undefined; } export declare function useControllableState<T>(props: UseControllableStateProps<T>): readonly [T, (value: T) => void | undefined];