bootstrap-vue-next
Version:
Seamless integration of Vue 3, Bootstrap 5, and TypeScript for modern, type-safe UI development
10 lines (9 loc) • 314 B
JavaScript
import { computed, toValue } from "vue";
const useStateClass = (value) => computed(() => {
const resolvedValue = toValue(value);
return resolvedValue === true ? "is-valid" : resolvedValue === false ? "is-invalid" : null;
});
export {
useStateClass as u
};
//# sourceMappingURL=useStateClass-BGbSLWFN.mjs.map