@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
18 lines (14 loc) • 660 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
;
var common = require('./common-DPb6NWR4.js');
const orientationPropTypeOptions = ['horizontal', 'vertical'];
const validateOrientation = (component, value, defaultValue = 'horizontal') => {
common.watchValidator(component, `_orientation`, (value) => typeof value === 'string' && orientationPropTypeOptions.includes(value), new Set([`KoliBriOrientation {${orientationPropTypeOptions.join(', ')}`]), value, {
defaultValue,
});
};
exports.validateOrientation = validateOrientation;
//# sourceMappingURL=orientation-CZeybVrr.js.map
//# sourceMappingURL=orientation-CZeybVrr.js.map