@mui/material
Version:
Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.
30 lines • 900 B
text/typescript
import * as React from 'react';
export interface UseFocusableWhenDisabledParameters {
/**
* Whether the component should be focusable when disabled.
* When `undefined`, composite items are focusable when disabled by default.
*/
focusableWhenDisabled?: boolean | undefined;
/**
* The disabled state of the component.
*/
disabled: boolean;
/**
* Whether this is a composite item or not.
* @default false
*/
composite?: boolean | undefined;
/**
* @default 0
*/
tabIndex?: number | undefined;
isNativeButton: boolean;
}
interface FocusableWhenDisabledProps {
'aria-disabled'?: boolean | undefined;
disabled?: boolean | undefined;
onKeyDown: (event: React.KeyboardEvent) => void;
tabIndex?: number | undefined;
}
export default function useFocusableWhenDisabled(parameters: UseFocusableWhenDisabledParameters): FocusableWhenDisabledProps;
export {};