UNPKG

@ark-ui/react

Version:

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

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