stream-chat-react
Version:
React components to create chat conversations or livestream style chat
15 lines • 575 B
TypeScript
/**
* Derives stable ARIA identifier IDs from a single root ID.
*
* Use this to keep dialog/component labeling conventions consistent without
* manually building `*-title` and `*-description` IDs at each call site.
*
* Behavior:
* - Root ID is trimmed and sanitized to `[A-Za-z0-9:_-]` before use.
* - Returns `undefined` IDs when root ID is missing/empty after sanitization.
*/
export declare const useAriaIdentifiers: (rootId?: string) => {
descriptionId: string | undefined;
titleId: string | undefined;
};
//# sourceMappingURL=useAriaIdentifiers.d.ts.map