stream-chat-react
Version:
React components to create chat conversations or livestream style chat
22 lines • 821 B
TypeScript
export type ResolvedModalAriaProps = {
'aria-describedby'?: string;
'aria-label'?: string;
'aria-labelledby'?: string;
};
type UseResolvedModalAriaPropsParams = {
ariaDescribedby?: string;
ariaLabel?: string;
ariaLabelledby?: string;
dialogId?: string;
};
/**
* Resolves modal labeling/description attributes from explicit props first,
* then from the modal dialog id convention (`${dialogId}-title|description`).
*
* Rules:
* - `aria-labelledby` wins over `aria-label`.
* - `aria-describedby` defaults to inferred id when explicit value is absent.
*/
export declare const useResolvedModalAriaProps: ({ ariaDescribedby, ariaLabel, ariaLabelledby, dialogId, }: UseResolvedModalAriaPropsParams) => ResolvedModalAriaProps;
export {};
//# sourceMappingURL=useResolvedModalAriaProps.d.ts.map