# Vue Navs & Tabs Component API

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

## CNav

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

### Props

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `as` | `string` | `'ul'` | 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

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `as` | `string` | `'li'` | 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` | `boolean` | `undefined` | 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

| Name | Description |
| --- | --- |
| `update:visible` |  |
| `visible-change` |  |

## CNavItem

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

### Props

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `active` | `boolean` | - | Toggle the active state for the component. |
| `as` | `string` | `'li'` | 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

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

### Props

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `active` | `boolean` | - | Toggle the active state for the component. |
| `as` | `string` | `'a'` | 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` | - |  |
