CNav
import { CNav } from '@coreui/vue-pro'
| Property | Default | Type |
|---|
| as | 'ul' | string |
Component used for the root node. Either a string to use a HTML element or a component. |
| layout | - | string |
Specify a layout type for component. |
| variant | - | string |
Set the nav variant to tabs or pills. |
CNavGroup
import { CNavGroup } from '@coreui/vue-pro'
Props
| Property | Default | Type |
|---|
| as | 'li' | string |
Component used for the root node. Either a string to use a HTML element or a component. |
| compact | - | boolean |
Make nav group more compact by cutting all padding in half. |
| visible | undefined | boolean |
Show nav group items. Acts as the initial state on its own, or as the controlled value when paired with a v-model:visible / @update:visible listener. |
Events
| Event name |
|---|
| update:visible |
- |
| visible-change |
- |
CNavItem
import { CNavItem } from '@coreui/vue-pro'
| Property | Default | Type |
|---|
| active | - | boolean |
Toggle the active state for the component. |
| as | 'li' | string |
Component used for the root node. Either a string to use a HTML element or a component. |
| class | - | string |
A string of all className you want applied to the component. |
| disabled | - | boolean |
Toggle the disabled state for the component. |
| href | - | string |
- |
CNavItem and CNavLink have the same properties. If you set the href property on CNavItem then, CNavLink will be generated inside CNavItem.
CNavLink
import { CNavLink } from '@coreui/vue-pro'
| Property | Default | Type |
|---|
| active | - | boolean |
Toggle the active state for the component. |
| as | 'a' | string |
Component used for the root node. Either a string to use a HTML element or a component. |
| disabled | - | boolean |
Toggle the disabled state for the component. |
| href | - | string |
- |