@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
27 lines (26 loc) • 848 B
TypeScript
/**
* Build the aria-describedby attribute for the checkbox
* @param extraAriaDescribedBy
* @param label
* @param checkBoxLabelId
* @param helpContent
* @param checkBoxkHelpContentId
* @param textError
* @param hasError
* @param checkBoxErrorId
* @param screenReaderId
* @returns {string}
* @constructor
*/
export declare const buildAriaDescribedBy: ({ extraAriaDescribedBy, label, checkBoxLabelId, helpContent, checkBoxkHelpContentId, errorText, hasError, checkBoxErrorId, screenReaderText, screenReaderId, }: {
extraAriaDescribedBy: string;
label?: JSX.Element | string;
checkBoxLabelId: string;
helpContent?: JSX.Element | string;
checkBoxkHelpContentId: string;
hasError: boolean;
errorText?: string;
checkBoxErrorId: string;
screenReaderText?: string;
screenReaderId: string;
}) => string;