Directives
Vue3 supports using custom directives, here you can find a list of directives from this package.
Depending on the installation method, directives may be automatically registered globally. However, if they are not automatically imported, you will want to import them manually. Every directive is exposed using the v- prefix. For example, for directive BToggle, it is imported under vBToggle. When using the composition api, it will function as expected. However, if you are using the options api you will want to manually remove the v- prefix during registry. For more information, visit the vue docs.
The BColorMode directive has a similar result to the useColorMode utility, but provides more low level access than the composable
A light-weight directive for showing modals by ID. It provides a semantically clear way to trigger modals and automatically handles accessibility attributes and trigger registration
Add popovers to any element using the v-b-popover directive. Popovers can be triggered by hovering, focusing, or clicking an element
A light-weight directive for toggling visibility state for collapses, offcanvas, and modals by ID. It automatically sets the aria-controls attribute and registers the trigger with the target component, which then manages aria-expanded and visual state
Add tooltips to any element using the v-b-tooltip directive. Tooltips can be triggered by hovering, focusing, or clicking an element