Vue Navs & Tabs Component API

Navs & Tabs API

Explore the API reference for the Vue Navs & Tabs component and discover how to effectively utilize its props for customization.

On this page

CNav

jsx
import { CNav } from '@coreui/vue-pro'
PropertyDefaultType
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

jsx
import { CNavGroup } from '@coreui/vue-pro'

Props

PropertyDefaultType
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.

visibleundefinedboolean

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

jsx
import { CNavItem } from '@coreui/vue-pro'
PropertyDefaultType
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.

jsx
import { CNavLink } from '@coreui/vue-pro'
PropertyDefaultType

Toggle the active state for the component.

Component used for the root node. Either a string to use a HTML element or a component.

Toggle the disabled state for the component.

-