UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

16 lines (13 loc) 620 B
/*! * KoliBri - The accessible HTML-Standard */ import { a as watchValidator } from './prop.validators.js'; const orientationPropTypeOptions = ['horizontal', 'vertical']; const validateOrientation = (component, value, defaultValue = 'horizontal') => { watchValidator(component, `_orientation`, (value) => typeof value === 'string' && orientationPropTypeOptions.includes(value), new Set([`KoliBriOrientation {${orientationPropTypeOptions.join(', ')}`]), value, { defaultValue, }); }; export { validateOrientation as v }; //# sourceMappingURL=orientation.js.map //# sourceMappingURL=orientation.js.map