@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
10 lines (9 loc) • 452 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { watchValidator } from "../utils";
const maxLengthBehaviorPropTypeOptions = ['hard', 'soft'];
export const validateMaxLengthBehavior = (component, value) => {
watchValidator(component, '_maxLengthBehavior', (value) => typeof value === 'string' && maxLengthBehaviorPropTypeOptions.includes(value), new Set(['String {hard, soft}']), value);
};
//# sourceMappingURL=max-length-behavior.js.map