Duffer Derek

Current Path : /var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/@mui/utils/useControlled/
Upload File :
Current File : /var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/@mui/utils/useControlled/useControlled.d.ts

export interface UseControlledProps<T = unknown> {
  /**
   * Holds the component value when it's controlled.
   */
  controlled: T | undefined;
  /**
   * The default value when uncontrolled.
   */
  default: T | undefined;
  /**
   * The component name displayed in warnings.
   */
  name: string;
  /**
   * The name of the state variable displayed in warnings.
   */
  state?: string;
}

export default function useControlled<T = unknown>(
  props: UseControlledProps<T>,
): [T, (newValue: T | ((prevValue: T) => T)) => void];

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists