UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

15 lines (14 loc) 527 B
/*! * KoliBri - The accessible HTML-Standard */ import { createPropDefinition } from "./helpers/factory"; import { normalizeString } from "./helpers/normalizers"; export const orientationOptions = ['horizontal', 'vertical']; export const orientationProp = createPropDefinition('orientation', 'horizontal', (value) => { const str = normalizeString(value); if (orientationOptions.includes(str)) { return str; } throw new Error(`Invalid orientation: ${str}`); }); //# sourceMappingURL=orientation.js.map