@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
12 lines (11 loc) • 531 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { watchValidator } from "../utils";
const orientationPropTypeOptions = ['horizontal', 'vertical'];
export const validateOrientation = (component, value, defaultValue = 'horizontal') => {
watchValidator(component, `_orientation`, (value) => typeof value === 'string' && orientationPropTypeOptions.includes(value), new Set([`KoliBriOrientation {${orientationPropTypeOptions.join(', ')}`]), value, {
defaultValue,
});
};
//# sourceMappingURL=orientation.js.map