bootstrap-vue-next
Version:
Seamless integration of Vue 3, Bootstrap 5, and TypeScript for modern, type-safe UI development
17 lines (16 loc) • 505 B
JavaScript
import { l as useColorMode$1 } from "../../../dist-B10a-gZ8.mjs";
//#region src/composables/useColorMode/index.ts
var useColorMode = (opts = {}) => {
const persist = opts.persist ?? false;
const attribute = "data-bs-theme";
const selector = "html";
return useColorMode$1({
attribute,
selector,
storageKey: persist === true ? `bv-color-${opts.attribute ?? attribute}-${opts.selector ?? selector}` : null,
...opts
});
};
//#endregion
export { useColorMode };
//# sourceMappingURL=index.mjs.map