@awsui/components-react
Version:
AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A
9 lines (8 loc) • 441 B
TypeScript
import * as React from 'react';
interface PropertyDescription {
componentName: string;
controlledProp: string;
changeHandler: string;
}
export declare function useControllable<ValueType>(controlledValue: ValueType, handler: Function | undefined, defaultValue: ValueType, { componentName, changeHandler, controlledProp }: PropertyDescription): readonly [ValueType, (newValue: React.SetStateAction<ValueType>) => void];
export {};