init component

This commit is contained in:
Robin COuret
2026-02-16 17:28:37 +01:00
parent 460c7a25e0
commit e0e50af706
4557 changed files with 666911 additions and 8 deletions

View File

@@ -0,0 +1,23 @@
import { h, defineComponent } from 'vue';
import { useTheme } from '../../composables/theme';
import AdjustIcon from '../icons/adjust/AdjustIcon';
import BTooltip from '../tooltip/BTooltip';
export default defineComponent({
name: 'b-theme-toggle',
setup(_, {
slots
}) {
const {
toggleTheme
} = useTheme();
return () => h('button', {
'aria-label': 'toggle color theme',
onClick: toggleTheme
}, [h(BTooltip, {
label: 'Toggle color theme'
}, () => slots.default ? slots.default() : h(AdjustIcon))]);
}
});
//# sourceMappingURL=BThemeToggle.js.map