Skip to content

Commit 1c3321b

Browse files
committed
refactor(CBreadcrumb): add the ability to set CSS classes
1 parent 827734c commit 1c3321b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/breadcrumb/CBreadcrumb.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import { defineComponent, h } from 'vue'
22

33
const CBreadcrumb = defineComponent({
44
name: 'CBreadcrumb',
5-
setup(_, { slots }) {
5+
setup(_, { slots, attrs }) {
66
return () =>
77
h(
88
'nav',
99
{
1010
'aria-label': 'breadcrumb',
1111
},
12-
h('ol', { class: 'breadcrumb' }, slots.default && slots.default()),
12+
h('ol', { class: ['breadcrumb', attrs.class] }, slots.default && slots.default()),
1313
)
1414
},
1515
})

0 commit comments

Comments
 (0)