@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
12 lines (11 loc) • 575 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { watchValidator } from "../utils";
const ariaCurrentValuePropTypeOptions = ['date', 'location', 'page', 'step', 'time', 'true', 'false'];
export const validateAriaCurrentValue = (component, value) => {
watchValidator(component, `_ariaCurrentValue`, (value) => typeof value === 'string' && ariaCurrentValuePropTypeOptions.includes(value), new Set([`AriaCurrentValue {${ariaCurrentValuePropTypeOptions.join(', ')}`]), value, {
defaultValue: 'page',
});
};
//# sourceMappingURL=aria-current-value.js.map