Skip to content

Commit 6ca1ec9

Browse files
committed
fix(CNavItem): as is now not a required property
1 parent 20a9dd2 commit 6ca1ec9

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

packages/coreui-vue/src/components/nav/CNavItem.ts

+12-1
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,25 @@ interface CNavItemProps extends ComponentProps<typeof CNavLink> {
1010
const CNavItem = defineComponent({
1111
name: 'CNavItem',
1212
props: {
13-
...CNavLink.props,
13+
/**
14+
* Toggle the active state for the component.
15+
*/
16+
active: Boolean,
1417
/**
1518
* Component used for the root node. Either a string to use a HTML element or a component.
1619
*/
1720
as: {
1821
type: String,
1922
default: 'li',
2023
},
24+
/**
25+
* Toggle the disabled state for the component.
26+
*/
27+
disabled: Boolean,
28+
/**
29+
* @ignore
30+
*/
31+
href: String,
2132
},
2233
setup(props: CNavItemProps, { slots }) {
2334
return () =>

0 commit comments

Comments
 (0)