@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
13 lines (12 loc) • 489 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { watchValidator } from "../utils";
export const alertTypeOptions = ['default', 'info', 'success', 'warning', 'error'];
const isAlertTypePropType = (value) => {
return typeof value === 'string' && alertTypeOptions.includes(value);
};
export const validateAlertType = (component, value) => {
watchValidator(component, '_type', isAlertTypePropType, new Set(alertTypeOptions), value);
};
//# sourceMappingURL=alert-type.js.map