UNPKG

botframework-webchat-component

Version:
13 lines (10 loc) 408 B
import useLiveRegionContext from './private/useContext'; import type { StaticElement } from './private/types'; /** * Queues a static element to the live region. * * After the element is queued, screen reader will eventually narrate it and it cannot be changed. */ export default function useQueueStaticElement(): (element: StaticElement) => void { return useLiveRegionContext().queueStaticElement; }