@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
17 lines (14 loc) • 558 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { h as headingLevelOptions } from './level.js';
import { a as watchValidator } from './prop.validators.js';
const watchHeadingLevel = (component, value) => {
watchValidator(component, '_level', (value) => typeof value === 'number' && headingLevelOptions.includes(value), new Set(headingLevelOptions.map(String)), value, {
defaultValue: 1,
required: true,
});
};
export { watchHeadingLevel as w };
//# sourceMappingURL=validation.js.map
//# sourceMappingURL=validation.js.map