@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
13 lines (12 loc) • 500 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { watchValidator } from "../utils";
export const progressVariantOptions = ['bar', 'cycle'];
const isProgressVariantPropType = (value) => {
return typeof value === 'string' && progressVariantOptions.includes(value);
};
export const validateVariantProgress = (component, value) => {
watchValidator(component, '_variant', isProgressVariantPropType, new Set(progressVariantOptions), value);
};
//# sourceMappingURL=variant-progress.js.map