UNPKG

bootstrap-vue-3

Version:

Early (but lovely) implementation of Vue 3, Bootstrap 5 and Typescript

10 lines (8 loc) 211 B
import type {Directive, DirectiveBinding} from 'vue' export default { mounted(el, binding: DirectiveBinding): void { if (binding.value !== false) { el.focus() } }, } as Directive<HTMLElement>