/** * In some circumstances, such as block previews, all focusable DOM elements * (input fields, links, buttons, etc.) need to be disabled. This hook adds the * behavior to disable nested DOM elements to the returned ref. * * @return {import('react').RefObject} Element Ref. * * @example * ```js * import { __experimentalUseDisabled as useDisabled } from '@gechiui/compose'; * const DisabledExample = () => { * const disabledRef = useDisabled(); * return ( *
* This link will have tabindex set to -1 * *
* ); * }; * ``` */ export default function useDisabled(): import('react').RefObject; //# sourceMappingURL=index.d.ts.map