> ## Documentation Index
> Fetch the complete documentation index at: https://ng-primitives.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Tabs

> Dynamically show and hide content based on an active tab.

<iframe style={{ width: '100%', height: '378px', borderRadius: 12 }} src="https://ng-primitives.github.io/ng-primitives/#/examples/tabs" />

## Usage

Assemble the tabs directives in your template.

```html
<div ngpTabs></div>
```

## API Reference

The following directives are available to import from the `@ng-primitives/ng-primitives/tabs` package:

### NgpTabsDirective

There are no inputs or outputs for this directive.

## Global Configuration

You can configure the default options for all tabss in your application by using the `provideNgpTabsConfig` function in a providers array.

```ts
import { provideNgpTabsConfig } from '@ng-primitives/ng-primitives/tabs';

bootstrapApplication(AppComponent, {
  providers: [provideNgpTabsConfig({})],
});
```

### NgpTabsConfig

## Schematics

You can use our schematic to generate a new tabs component.

<CodeGroup>
  ```bash Angular CLI
  ng generate @ng-primitives/ng-primitives:tabs
  ```

  ```bash Nx
  nx generate @ng-primitives/ng-primitives:tabs
  ```
</CodeGroup>

### Options

<ResponseField name="name" type="string">
  The name of the component.
</ResponseField>

<ResponseField name="project" type="string">
  The name of the project to add the component to.
</ResponseField>

<ResponseField name="path" type="string">
  The path to create the component.
</ResponseField>
