@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
10 lines (9 loc) • 456 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { watchValidator } from "../utils";
const labelAlignPropTypeOptions = ['left', 'right'];
export const validateLabelAlign = (component, value) => {
watchValidator(component, `_labelAlign`, (value) => typeof value === 'string' && labelAlignPropTypeOptions.includes(value), new Set([`KoliBriLabelAlign {${labelAlignPropTypeOptions.join(', ')}`]), value);
};
//# sourceMappingURL=label-align.js.map