UNPKG

bootstrap-vue-next

Version:

Seamless integration of Vue 3, Bootstrap 5, and TypeScript for modern, type-safe UI development

11 lines (10 loc) 536 B
import { computed, toValue } from "vue"; //#region src/composables/useAriaInvalid.ts var useAriaInvalid = (ariaInvalid, state) => computed(() => { const resolvedAriaInvalid = toValue(ariaInvalid); const resolvedState = toValue(state); return resolvedAriaInvalid === true ? "true" : typeof resolvedAriaInvalid === "string" ? resolvedAriaInvalid : resolvedState === false ? "true" : resolvedAriaInvalid === false ? "false" : void 0; }); //#endregion export { useAriaInvalid as t }; //# sourceMappingURL=useAriaInvalid-01Dd60GC.mjs.map