Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 512de8d

Browse files
committed
feat(BNav): add prop underline
1 parent 02d81f6 commit 512de8d

File tree

1 file changed

+4
-0
lines changed
  • packages/bootstrap-vue-next/src/components/BNav

1 file changed

+4
-0
lines changed

packages/bootstrap-vue-next/src/components/BNav/BNav.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ interface BNavProps {
1919
tabs?: Booleanish
2020
tag?: string
2121
vertical?: Booleanish
22+
underline?: Booleanish
2223
}
2324
2425
const props = withDefaults(defineProps<BNavProps>(), {
@@ -31,6 +32,7 @@ const props = withDefaults(defineProps<BNavProps>(), {
3132
tabs: false,
3233
tag: 'ul',
3334
vertical: false,
35+
underline: false,
3436
})
3537
3638
defineSlots<{
@@ -46,6 +48,7 @@ const smallBoolean = useBooleanish(() => props.small)
4648
const tabsBoolean = useBooleanish(() => props.tabs)
4749
const verticalBoolean = useBooleanish(() => props.vertical)
4850
const alignment = useAlignment(() => props.align)
51+
const underlineBoolean = useBooleanish(() => props.underline)
4952
5053
const computedClasses = computed(() => ({
5154
'nav-tabs': tabsBoolean.value,
@@ -58,5 +61,6 @@ const computedClasses = computed(() => ({
5861
'nav-justified': !verticalBoolean.value && justifiedBoolean.value,
5962
[alignment.value]: !verticalBoolean.value && props.align !== undefined,
6063
'small': smallBoolean.value,
64+
'nav-underline': underlineBoolean.value,
6165
}))
6266
</script>

0 commit comments

Comments
 (0)