@engie-group/fluid-design-system-react
Version:
Fluid Design System React
9 lines (8 loc) • 561 B
TypeScript
import React from 'react';
/**
* Apply the inert attribute to an HTMLElement depending on the value of the inert parameter.
* @param ref The reference to the HTMLElement to which the inert attribute will be applied.
* @param inert Whether the inert attribute should be applied or not.
*/
export declare const useInert: (ref: React.RefObject<HTMLElement | null>, inert?: boolean) => void;
export declare const useStateControl: <T>(initialValue: T, controlledValue: T, changeCallback?: (value: T) => void) => readonly [T, (value: T, emit?: boolean) => void];