UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

12 lines 687 B
/** * Checks whether an element is disabled, either via the native `disabled` DOM property (set, for * example, by `useListItemRegister` when an item's id is included in `state.nonInteractiveIds`) or * via the `aria-disabled="true"` attribute (set by consumers directly on an item, e.g. * `<Menu.Item aria-disabled>`). * * Collection items should use this check instead of testing `aria-disabled` alone so that items * disabled through either mechanism are consistently blocked from activating (click, Enter/Space, * hover-intent, etc.). */ export declare const isElementDisabled: (element: Element | null | undefined) => boolean; //# sourceMappingURL=isElementDisabled.d.ts.map