UNPKG

@carbon/react

Version:

React components for the Carbon Design System

18 lines (17 loc) 791 B
/** * Copyright IBM Corp. 2016, 2026 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { type RefObject } from 'react'; export declare const useNoInteractiveChildren: (ref: RefObject<HTMLElement | null>, message?: string) => void; export declare const useInteractiveChildrenNeedDescription: (ref: RefObject<HTMLElement | null>, message?: string) => void; /** * Finds an interactive node in a given DOM node, including the node itself. */ export declare const getInteractiveContent: (node: HTMLElement) => HTMLElement | null; /** * Finds a node with a `role` in a given DOM node, including the node itself. */ export declare const getRoleContent: (node: HTMLElement) => HTMLElement | null;