@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
15 lines (14 loc) • 539 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { watchValidator } from "../utils";
export const textareaResizeOptions = ['vertical', 'none'];
const isTextareaResizePropType = (value) => {
return typeof value === 'string' && textareaResizeOptions.includes(value);
};
export const validateResizeTextarea = (component, value) => {
watchValidator(component, '_resize', isTextareaResizePropType, new Set(textareaResizeOptions), value, {
defaultValue: 'vertical',
});
};
//# sourceMappingURL=resize-textarea.js.map